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

Rick Papo rpapo at comcast.net
Mon Feb 17 04:58:10 PST 2020


Normal behavior.  If you want upgrade to work, you have to increment one of
the first three version numbers.  The last one is irrelevant.

Been there, seen that.  Annoyed a customer because I didn't know.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Deepali Ahirrao via wix-users
Sent: Monday, February 17, 2020 7:53 AM
To: wix-users at lists.wixtoolset.org
Cc: Deepali Ahirrao <deepali.ahirrao at gmail.com>
Subject: [wix-users] Same version upgrade adding 2 entries in ARP

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

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/




More information about the wix-users mailing list