1
通過註冊搜索引導程序清單生成器,可以獲取任何鍵的Registery值。引導程序清單生成器的註冊搜索
但是,如果該鍵不存在,它會返回什麼?
正如我想要安裝的基礎上,如果perticular註冊碼存在與否的先決條件。
如果存在,則不安裝前提條件否則安裝。
如何做到這一點..?
通過註冊搜索引導程序清單生成器,可以獲取任何鍵的Registery值。引導程序清單生成器的註冊搜索
但是,如果該鍵不存在,它會返回什麼?
正如我想要安裝的基礎上,如果perticular註冊碼存在與否的先決條件。
如果存在,則不安裝前提條件否則安裝。
如何做到這一點..?
它可以很容易地通過使用ValueExists在比較BypassIf元件來實現:
<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>