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获取外部msi的版本_Wix - Fatal编程技术网

wix获取外部msi的版本

wix获取外部msi的版本,wix,Wix,是否有可能获取外部msi文件的版本 我有一个包,我定义安装几个外部MSI文件。其中一个MSI文件可能已经安装在目标计算机上,这就是为什么我要添加InstallCondition,在其中检查相关MSI是否已经安装了较新版本。我知道这通常可以通过引导程序来完成,但我们有一个公司拥有的引导程序,他不能这样做。我当前的代码如下所示: <util:ProductSearch UpgradeCode="GUID-C3AE7D89" Variable="InstalledServicesVersion"

是否有可能获取外部msi文件的版本

我有一个包,我定义安装几个外部MSI文件。其中一个MSI文件可能已经安装在目标计算机上,这就是为什么我要添加InstallCondition,在其中检查相关MSI是否已经安装了较新版本。我知道这通常可以通过引导程序来完成,但我们有一个公司拥有的引导程序,他不能这样做。我当前的代码如下所示:

<util:ProductSearch UpgradeCode="GUID-C3AE7D89" Variable="InstalledServicesVersion" />

...
 <MsiPackage Vital="yes" EnableFeatureSelection="no" DisplayInternalUI="no" Visible="yes"
              Name="Services.msi"
              SourceFile="$(var.TargetDir)\Services.msi"
              Cache="yes"
              InstallCondition="(CurrentServicesVersion > InstalledServicesVersion)">

...
那么,如何设置CurrentServicesVersion,以便跳过此MSI文件? 或者有没有更好的方法(除了bootstrapper)