1

Bootstrapper Manifest Generator の Registery 検索により、任意のキーの Registery 値を取得できます。

しかし、そのキーが存在しない場合、何を返すのでしょうか?

特定の登録キーが存在するかどうかに基づいて前提条件をインストールしたいので。

存在する場合は前提条件をインストールせず、そうでない場合はインストールします。

これを行う方法..?

4

1 に答える 1

2

BypassIf要素でValueExists比較を使用すると、簡単に実現できます。

<Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="AAA">
   <InstallChecks>
      <RegistryCheck Property="IsInstalled" Key="HKCU\Software\ABC Software\ABC" Value="Installed" />
   </InstallChecks>

   <Commands Reboot="Defer">
      <Command PackageFile="setup.exe" EstimatedInstallSeconds="15" >
         <InstallConditions>
            <BypassIf Property="IsInstalled" Compare="ValueExists" />
         </InstallConditions>
      </Command>
   </Commands>

   ...

</Product>
于 2011-11-24T16:00:20.960 に答える