Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在WiX中指定Windows installer的最高版本?_Wix_Installation_Windows Installer - Fatal编程技术网

如何在WiX中指定Windows installer的最高版本?

如何在WiX中指定Windows installer的最高版本?,wix,installation,windows-installer,Wix,Installation,Windows Installer,我使用WIX3.6为应用程序构建msi包。我是否可以指定使用适用于Windows Installer 3.1的功能,并在使用更高版本的功能时发出错误?如果指定Package/@installervision=“301”并运行验证,则如果使用该版本MSI中不可用的功能,将出现生成时错误。据我所知,只能指定Windows Installer的最低版本(在程序包元素中)。@Yansklayarenko如果我在程序包元素中指定InstallerVersion=“301”并使用仅在MSI 5.0中可用的功

我使用WIX3.6为应用程序构建msi包。我是否可以指定使用适用于Windows Installer 3.1的功能,并在使用更高版本的功能时发出错误?

如果指定
Package/@installervision=“301”
并运行验证,则如果使用该版本MSI中不可用的功能,将出现生成时错误。

据我所知,只能指定Windows Installer的最低版本(在
程序包
元素中)。@Yansklayarenko如果我在程序包元素中指定InstallerVersion=“301”并使用仅在MSI 5.0中可用的功能,是否应发出错误?如果您使用MSI 5.0的功能,而且MSI 5.0没有安装在目标机器上,那么它将发出一个错误(我希望是这样)。相反,您应该为MSI 5.0特定区域设置适当的条件,并编写在MSI版本较低的情况下运行的替代方案。基本上,您有两个可靠的选择:1)找出您的操作系统先决条件,并坚持最低版本的MSI embedded,或者2)在继续主安装之前,编写一个捆绑包并安装所需版本的Windows Installer。在第二种情况下,您总是随身携带正确版本的MSI。但缺点是安装的大小以及与编写和维护捆绑包(而不是纯MSI包)相关的一些额外复杂性。如何运行验证?它默认在WiX v3.x中运行,您可以使用smoke.exe手动执行。