英文:
Wix toolset - Bundle MSI Install Conditions - Not Silent Install
问题
我试图实现的东西在表面上看起来很简单。从我的捆绑包中,我需要根据一些条件安装一个MSI包。这两个条件单独使用时都能正常工作,但当它们合在一起时就不起作用。
条件:
如果是Dulx或Basic且不处于静默模式下才安装。
我尝试过将InstallTypeDulx和InstallTypeBasic以及UIlevel放在()中,也尝试过用>替换>。任何帮助都将不胜感激。
英文:
I am trying to achieve something that on the surface is simple. From my bundle, I need to install an MSI package based on a few conditions. Both of these conditions work fine independently however when added together it doesn't work.
Conditions.
Install if Dulx or Basic and if NOT in silent mode.
<MsiPackage
Id="Prep"
Compressed="yes"
Name="Redist\InstallCheckList.msi"
SourceFile="$(var.InstallCheckList.TargetDir)Prep.msi"
DisplayInternalUI="no"
Vital="yes"
InstallCondition="(InstallTypeDulx=1 OR InstallTypeBasic=1) AND UILEVEL > 2" >
<MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]" />
</MsiPackage>
I have tried surrounding the InstallTypes and UIlevel in (), i've tried replacing the > then with >.
Any help would be great.
答案1
得分: 1
你可能指的是 WixBundleUILevel
:https://wixtoolset.org/docs/tools/burn/builtin-variables/
英文:
You probable mean WixBundleUILevel
: https://wixtoolset.org/docs/tools/burn/builtin-variables/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论