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

Rick Papo rpapo at comcast.net
Mon Feb 17 05:16:31 PST 2020


Can’t say without looking.  For me, upgrade didn’t work until I started incrementing the third number (e.g. 12.0.0 to 12.0.1).  

 

There were other things that needed doing as well:

    

<Upgrade Id="$(var.UpgradeCode)"> 

    <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="no" Property="NEWERVERSIONDETECTED" /> 

    <UpgradeVersion Minimum="12.0.0.0" IncludeMinimum="yes" Maximum="$(var.ProductVersion)" IncludeMaximum="no" Property="OLDERVERSIONBEINGUPGRADED" /> 

</Upgrade>

    

<Condition Message="A newer version of [ProductName] is already installed.">

    NOT NEWERVERSIONDETECTED 

</Condition>

 

<InstallExecuteSequence>

    <RemoveExistingProducts Before='InstallInitialize' />

</InstallExecuteSequence> 

 

I was previously using the <MajorUpgrade> feature, but that turned out to be too limited for my needs.  So it got removed.

 

--Rick

 

 

From: Deepali Ahirrao [mailto:deepali.ahirrao at gmail.com] 
Sent: Monday, February 17, 2020 8:01 AM
To: Rick Papo <rpapo at comcast.net>
Cc: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Same version upgrade adding 2 entries in ARP

 

But the upgrade from 1.0.0.1 to 1.0.0.2 works with the same code.

 

On Mon 17 Feb, 2020, 18:28 Rick Papo, <rpapo at comcast.net <mailto:rpapo at comcast.net> > wrote:

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 <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 <mailto:wix-users at lists.wixtoolset.org> 
Cc: Deepali Ahirrao <deepali.ahirrao at gmail.com <mailto: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