You can use the UpgradeVersion elements if you want (I do - I have different error messages for same-version and new-version already installed). The key is that the product id must change. What DavidW suggests (*) works nicely.
DaveC >________________________________ > From: "kurt.jen...@us.ophiropt.com" <kurt.jen...@us.ophiropt.com> >To: General discussion about the WiX toolset. ><wix-users@lists.sourceforge.net> >Sent: Thursday, May 8, 2014 9:37 AM >Subject: Re: [WiX-users] upgrade not working > > >I did not know about MajorUpgrade. That should solve my problem. Thank you. > >-----Original Message----- >From: David Watson [mailto:dwat...@sdl.com] >Sent: Thursday, May 08, 2014 10:20 AM >To: General discussion about the WiX toolset. >Subject: Re: [WiX-users] upgrade not working > >If you want to do a major upgrade, ditch the upgrade elements for a >MajorUpgrade one, change the product Id to *. > >Be aware that the MSI only pays attention to the first three parts of the >product version, but in this example it should upgrade. > > >-----Original Message----- >From: kurt.jen...@us.ophiropt.com [mailto:kurt.jen...@us.ophiropt.com] >Sent: 08 May 2014 16:28 >To: wix-users@lists.sourceforge.net >Subject: [WiX-users] upgrade not working > >Have a new installation that refuses to upgrade. On each new release the >installer complains. That "Another version of this product is already >installed... Below is the Product.wxs file. Build and install this version, >change BGProductVersion to 1.11.5241.1234, build and install, "Another >version..." message. Simply cannot see why this is not working. Please help. > ><?xml version="1.0" encoding="UTF-8"?> ><Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > <?define BGProductVersion = "1.10.5218.8242"?> > <Product Id="25f4b456-0d56-4430-97ad-91e764a2c764" > Name="Pyrocam IV Firmware Updater" > Language="1033" > Version="$(var.BGProductVersion)" > Manufacturer="Ophir-Spiricon, LLC" > UpgradeCode="68fbccb3-4859-402a-81c3-9ba94c8ee4f6"> > <Package Compressed="yes" > InstallerVersion="300" > InstallPrivileges="elevated" > InstallScope="perMachine" > Platform="x86" /> > <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> > > <Upgrade Id="{68fbccb3-4859-402a-81c3-9ba94c8ee4f6}"> > <UpgradeVersion Minimum="$(var.BGProductVersion)" > IncludeMinimum="no" > OnlyDetect="yes" > Language="1033" > Property="NEWPRODUCTFOUND" /> > > <UpgradeVersion Minimum="1.0.0" > IncludeMinimum="yes" > Maximum="$(var.BGProductVersion)" > IncludeMaximum="no" > Language="1033" > Property="UPGRADEFOUND" /> > </Upgrade> > > <InstallExecuteSequence> > <RemoveExistingProducts After="InstallInitialize" /> > </InstallExecuteSequence> > > <?include Variables.wxi?> > > <?include Pleora.wxi?> > > <Feature Id="ProductFeature" Title="Pyrocam IV Firmware Updater" Level="1"> > <!-- TODO: Remove the comments around this ComponentRef >element and the Component above in order to add resources to this installer. >--> > <ComponentRef Id="APPLICATIONOUTPUT" /> > > <ComponentGroupRef Id="Pleorax86DLL" /> > <ComponentGroupRef Id="Pleorax64DLL" /> > > <ComponentGroupRef Id="Pleora" /> > > <ComponentRef Id="SpiriconProgramsFolder"/> > <ComponentRef Id="ApplicationProgramsFolder"/> > > <!--ComponentRef Id="ProgramMenuFolderShortcut"/--> > <ComponentRef Id="ApplicationStartMenuShortcut"/> > > <!-- Note: The following ComponentGroupRef is required to pull in >generated authoring from project references. --> > <!--<ComponentGroupRef Id="Product.Generated" />--> > </Feature> > </Product> ></Wix> > > > >------------------------------------------------------------------------------ >Is your legacy SCM system holding you back? Join Perforce May 7 to find out: >• 3 signs your SCM is hindering your productivity • Requirements for releasing >software faster • Expert tips and advice for migrating your SCM now >http://p.sf.net/sfu/perforce _______________________________________________ >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. > > > >This message has been scanned for malware by Websense. www.websense.com > > >------------------------------------------------------------------------------ >Is your legacy SCM system holding you back? Join Perforce May 7 to find out: >• 3 signs your SCM is hindering your productivity • Requirements for releasing >software faster • Expert tips and advice for migrating your SCM now >http://p.sf.net/sfu/perforce _______________________________________________ >WiX-users mailing list >WiX-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/wix-users > >------------------------------------------------------------------------------ >Is your legacy SCM system holding you back? Join Perforce May 7 to find out: >• 3 signs your SCM is hindering your productivity >• Requirements for releasing software faster >• Expert tips and advice for migrating your SCM now >http://p.sf.net/sfu/perforce >_______________________________________________ >WiX-users mailing list >WiX-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users