[wix-users] Same version upgrade adding 2 entries in ARP

Deepali Ahirrao deepali.ahirrao at gmail.com
Mon Feb 17 04:53:15 PST 2020


Hi,

I am trying to use MajorUpgrade to upgrade the same version (1.0.0.1 to
newer 1.0.0.1). But could not get it working. I am using same UpgradeCode
and different ProductCode.

<MajorUpgrade AllowSameVersionUpgrades="yes"
DowngradeErrorMessage="A newer version of [ProductName] is already
installed."
 />

The install ends up adding 2 entries in Add/Remove Programs.
Below is my Bundle.wxs. The last ExePackage entry adds a file at a
particular location (the file name remains same across versions). Can this
ExePackage entry cause a problem?

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <Bundle Name="..." Version="..." Manufacturer="..."
UpgradeCode="..." Copyright="..." IconSourceFile="..." AboutUrl="...">



    <Chain>

      <ExePackage Id="Accept_License"
SourceFile="$(var.LicDir)Accept_License" />

      <RollbackBoundary />



      <MsiPackage Id="MainPackage"
SourceFile="$(var.ProjectDir)..\main\bin\x64\Release\Main.msi" />

      <RollbackBoundary />



      <ExePackage Id="Linking"
SourceFile="$(var.ProjectDir)..\CreateLinks\bin\x64\Release\CreateLinks.exe"
Compressed=*"yes"* Cache=*"yes" *Vital=*"yes" *

        InstallCommand=*"-create "[InstallFolder]"*

        UninstallCommand=*"-remove "[InstallFolder]"*

        DetectCondition=*"VersionAlreadyInstalled"*>

      </ExePackage>



    </Chain>

  </Bundle>

</Wix>


Any help on this is greatly appreciated.

Thanks,
Deepali


More information about the wix-users mailing list