I tried silently upgrading 19.0.1 on top of 18.3 with the following code snippet:
<Upgrade Id="E8805AF3-CF50-4092-BE57-220A8C51E2AA"> <UpgradeVersion OnlyDetect="yes" Minimum="19.0.1" IncludeMinimum="no" Property="NEWERVERSIONDETECTED"/> <UpgradeVersion OnlyDetect="no" Maximum="19.0.1" IncludeMaximum="no" Minimum="18.0.0" IncludeMinimum="yes" Property="OLDERVERSIONBEINGUPGRADED"/> </Upgrade> <!-- <MajorUpgrade Schedule="afterInstallInitialize" AllowSameVersionUpgrades="yes"/>--> <CustomActionRef Id="WixExitEarlyWithSuccess"/> <InstallExecuteSequence> <RemoveExistingProducts After="InstallInitialize"/> <!-- These are our custom actions --> <Custom Action='PrepareForInstall' After='InstallInitialize'>NOT Installed AND NOT UPGRADINGPRODUCTCODE</Custom> <Custom Action='SetJavawPath' Before='InstallServices'>NOT Installed</Custom> <Custom Action="Upgrader" After="InstallHelperAction">NOT Installed</Custom> </InstallExecuteSequence> The log file has the following entries: Doing action: FindRelatedProducts Action start 12:01:15: FindRelatedProducts. PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value is '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'. Skipping action: WixExitEarlyWithSuccess (condition is false) Doing action: AppSearch FindRelatedProducts. Return value 1. AppSearch. ... Windows Installer installed the product. ... Product Version: 19.0.1. Product Language: 1033. .. Installation success or error status: 0. It looks like upgrade should have succeeded, but in reality 18.3 is there and 19.0.1 is not. I noticed that we have <MajorUpgrade> element commented out (see above). Should it be uncommented? (Sorry I don't work with WIX a whole lot). Thanks, Alec On Thu, Sep 20, 2012 at 3:15 AM, Peter Shirtcliffe <pshirtcli...@sdl.com> wrote: > One caveat if you follow Neil's advice. WixExitEarlyWithSuccess doesn't work > completely seamlessly with MajorUpgrade. See > http://sourceforge.net/p/wix/feature-requests/626/ > The workaround is to schedule the CA yourself with this condition in the > install sequences: > > <Custom Action="WixExitEarlyWithSuccess" > After="FindRelatedProducts">WIX_DOWNGRADE_DETECTED</Custom> > > -----Original Message----- > From: Neil Sleightholm [mailto:n...@x2systems.com] > Sent: 19 September 2012 22:29 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails > > You might want to look at the <MajorUpgrade> element > http://wix.sourceforge.net/manual-wix3/major_upgrade.htm it makes it easier > to implement upgrades. > > Neil > > -----Original Message----- > From: Alec [mailto:alecs...@gmail.com] > Sent: 19 September 2012 22:12 > To: wix-users@lists.sourceforge.net > Subject: -----SPAM----- Re: [WiX-users] UI upgrade succeeds, but silent > upgrade fails > > I took that Upgrade snippet from Rob's answer on > http://stackoverflow.com/a/724098. > > Let me try this with Minimum set. > > Thanks, > > Alec > > On Wed, Sep 19, 2012 at 3:09 PM, Hoover, Jacob [via Windows Installer XML > (WiX) toolset] <ml-node+s687559n7580675...@n2.nabble.com> wrote: >> Hmm, I think you are missing a minimum on OlderVerionBeingUpgraded >> >> <!-- This information enables Windows Installer major upgrade >> functionality so users can seamlessly --> >> <!-- install a new version of the product and have the old version >> automatically uninstall behind --> >> <!-- the scenes. See the following topic in the MSDN Library for >> additional information: --> >> <!-- >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/s >> etup/major_upgrades.asp >> --> >> <Upgrade Id="$(var.UpgradeCode)"> >> <UpgradeVersion Minimum="$(var.ProductVersion)" IncludeMinimum="no" >> OnlyDetect="yes" Property="NEWERVERSION_INSTALLED" /> >> <UpgradeVersion Minimum="0.0.0" IncludeMinimum="yes" >> Maximum="$(var.ProductVersion)" IncludeMaximum="no" >> Property="OLDERVERSION_BEINGUPGRADED" >> MigrateFeatures="yes" /> >> </Upgrade> >> >> As far as App Compat, I was talking in the logs. >> >> >> In you logs, it looks as if your ProductCode hasn't changed between the > two? >> (The product code should only be the same if you are doing a minor >> update.) >> >> -----Original Message----- >> From: Alec Swan [mailto:[hidden email]] >> Sent: Wednesday, September 19, 2012 3:57 PM >> To: General discussion for Windows Installer XML toolset. >> Subject: Re: [WiX-users] UI upgrade succeeds, but silent upgrade fails >> >> We are trying to upgrade from 18.3 to 19.0.1. >> >> Here is the upgrade code: >> <Upgrade Id="E8805AF3-CF50-4092-BE57-220A8C51E2AA"> >> <UpgradeVersion OnlyDetect="no" Minimum="18.0.1" IncludeMinimum="no" >> Property="NEWERVERSIONDETECTED"/> >> <UpgradeVersion OnlyDetect="no" Maximum="19.0.1" IncludeMaximum="no" >> Property="OLDERVERSIONBEINGUPGRADED"/> >> </Upgrade> >> >> How do we ignore APPCOMPAT? Do you need any other info? >> >> Thanks, >> >> Alec >> >> On Wed, Sep 19, 2012 at 2:50 PM, Hoover, Jacob <[hidden email]> wrote: >> >>> Ignore the APPCOMPAT. >>> >>> What does your Upgrade table look like? What are the versions of the >>> old and new MSI? >>> >>> -----Original Message----- >>> From: Alec Swan [mailto:[hidden email]] >>> Sent: Wednesday, September 19, 2012 2:49 PM >>> To: General discussion for Windows Installer XML toolset. >>> Subject: [WiX-users] UI upgrade succeeds, but silent upgrade fails >>> >>> Hello, >>> >>> We are testing upgrade from an older version to the version we are >>> about to release. We noticed that upgrading "msiexec.exe /i my.msi" >>> successfully upgrades the old product files with the new ones. >>> However, silently installing with the following command fails: >>> msiexec.exe /i my.msi REINSTALL=ALL REINSTALLMODE=vomus /qn >>> >>> The log file generated during silent upgrade contains the following >>> messages: >>> >>> APPCOMPAT: looking for appcompat database entry with ProductCode >>> '{15E9E02D-8660-41B3-9373-3E427A392478}'. >>> APPCOMPAT: no matching ProductCode found in database. >>> .. >>> FindRelatedProducts. >>> PROPERTY CHANGE: Adding OLDERVERSIONBEINGUPGRADED property. Its value >>> is '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'. >>> PROPERTY CHANGE: Adding NEWERVERSIONDETECTED property. Its value is >>> '{4B43BAEB-553B-4FAD-9219-C55DA3492D89}'. >>> Doing action: WixExitEarlyWithSuccess FindRelatedProducts. Return >>> value 1. >>> >>> Does this mean that installer is not finding the previous product >>> version and hence doesn't uninstall it? If so, why would UI upgrade work? >>> >>> I also noticed that we didn't have Package Id specified in the WXS >>> file for the old product. However, we did specify the same Product >>> UpgradeCode in the old and new versions. Is this sufficient? >>> >>> Thanks, >>> >>> Alec >>> >>> --------------------------------------------------------------------- >>> - >>> -------- >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. >>> Discussions will include endpoint security, mobile security and the >>> latest in malware threats. >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> WiX-users mailing list >>> [hidden email] >>> https://lists.sourceforge.net/lists/listinfo/wix-users >>> >>> --------------------------------------------------------------------- >>> - >>> -------- >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. >>> Discussions will include endpoint security, mobile security and the >>> latest in malware threats. >>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> WiX-users mailing list >>> [hidden email] >>> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> ---------------------------------------------------------------------- >> -------- >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions will include endpoint security, mobile security and the >> latest in malware threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> WiX-users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> ---------------------------------------------------------------------- >> -------- >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions will include endpoint security, mobile security and the >> latest in malware threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> WiX-users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> >> ________________________________ >> If you reply to this email, your message will be added to the >> discussion >> below: >> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/UI-upgra >> de-succeeds-but-silent-upgrade-fails-tp7580671p7580675.html >> To unsubscribe from UI upgrade succeeds, but silent upgrade fails, >> click here. >> NAML > > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/UI-upgrade-succ > eeds-but-silent-upgrade-fails-tp7580671p7580676.html > Sent from the wix-users mailing list archive at Nabble.com. > ----------------------------------------------------------------------------- > - > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and threat > landscape has changed and how IT managers can respond. Discussions will > include endpoint security, mobile security and the latest in malware threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ----------------------------------------------------------------------------- > - > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > SDL PLC confidential, all rights reserved. > If you are not the intended recipient of this mail SDL requests and requires > that you delete it without acting upon or copying any of its contents, and we > further request that you advise us. > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 > 7DY, UK. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://ad.doubleclick.net/clk;258768047;13503038;j? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users