Wix工具集 – 捆绑MSI安装条件 – 非静默安装

huangapple go评论65阅读模式
英文:

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/

huangapple
  • 本文由 发表于 2023年7月18日 14:36:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76710080.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定