下面是两个非常基本的刻录引导程序的源代码。引导程序安装2个MSI包,然后SP1对appdata包进行重大升级。最初,这是非常好的工作,除了我有几个维修问题。
发布于 2013-11-01 22:14:48
为了阻止在没有原始引导程序的情况下安装SP1,可以使用以下选项之一:
选项1:使用bundle/@条件属性
<Bundle
Name="Test123" Version="1.0.0.0"
Manufacturer="abc cORP" UpgradeCode=""
Condition="((VersionNT = v6.0)">
</Bundle>这将只适用于预先构建的wix刻录变量。详细的变量列表可以在这里找到:链接
选项2:第二个方法使用WIXBALExtension条件元素:
<bal:Condition
Message="The Bootstrapper has to be installed in version $(var.BaselineVersion)">
WixBundleInstalled OR
((SampleMsiInstalledState = 5) AND (SampleMsiInstalledVersion >= v$(var.BaselineVersion)))
</bal:Condition>
<util:ProductSearch Guid="[msi_prerequisite_package_product_code]"
Result="version" Variable="SampleMsiInstalledVersion" />
<util:ProductSearch Guid="[msi_prerequisite_package_product_code]"
Result="state" Variable="SampleMsiInstalledState" />在这里,我们使用来自ProductSearch的WixUtilExtension来查找相关的msi包的状态和版本。然后将该版本与捆绑包(BasellineVersion)所需的最低版本进行比较。
相关链接1 相关链接2
https://stackoverflow.com/questions/19708773
复制相似问题