如何在Msi-Package

时间:2016-09-12 13:40:25

标签: wix windows-installer bootstrapper

我正在处理wix bootstrapper,我坚持以下几点......

在bootstrap的WXS文件中,即在bundle.wxs中,我设置了变量:

<Variable Name="InstallFor001" Type="numeric" Value="0" Persisted="yes" />
    <MsiProperty Name="Install001" Value="[InstallFor001]" />

在wix的WXS文件中,即在product.wxs中,我设置了属性:

<Property Id="Install001"  Value="0"/>

“Install001”的值将在引导程序中更新。 现在在product.wxs中,我想使用“Install001”的值作为条件,就像这样

<Condition Level='1'> VersionNT64 = 601 AND Install001</Condition>

我试过这种方式,但它失败了。 这是获得Msiproperty价值的正确方法,还是有其他方法可以完成它?

0 个答案:

没有答案