我的Bundle exe有以下代码
<PackageGroup Id="MyWeb">
<MsiPackage SourceFile="Release\en-us\MyWeb.msi" Cache="no" Id="MyWebMSI" Compressed="yes" ForcePerMachine="yes" Vital="yes" DisplayName="My WEB">
<MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]"/>
<MsiProperty Name="MyWebPORT" Value="[MyWebPORTNO]"/>
<MsiProperty Name="INSTALLCERTIFICATES" Value="[DOINSTALLCERTIFICATES]"/>
</MsiPackage>
</PackageGroup>
MyWeb.msi又是一个wix安装程序,代码如下:
<Product Id="*" UpgradeCode="442a9a72-ada7-4c68-b77f-feb99e67a23a"
Version="!(bind.FileVersion.filename)"
Name="!(loc.ProductName)"
Language="!(loc.LANG)"
Manufacturer="!(loc.ManufacturerName)">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated"
Languages="!(loc.LANG)"
Manufacturer="!(loc.CompanyName)" Comments="!(loc.Comments)"
Description="!(loc.Description)" Keywords="!(loc.Keywords)"/>
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
</Product>
<Fragment>
...
</Fragment>
但是,在升级我的bundle exe时,不是升级我的msi安装程序而是创建新条目here for examples
我希望我的msi得到更新,而不是在“添加/删除程序”中创建新条目