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>