Alex, If you want to do upgrades then you have to use an upgrade code and the upgrade code must remain the same throughout all your versions.
FindRelatedProducts searches for the upgrade code. If it find one that matches it knows it's found a related product. Chris On 10/14/2010 07:21 PM, John Bergman wrote: > What would I do to the UpgradeCode to get that to work as well? Would that > not be needed then? > > [probably a MSI question], but how does the installer know what the previous > version is in order to uninstall it? > > -----Original Message----- > From: Alexander Kozlenko [mailto:alexander.kozle...@hotmail.com] > Sent: Thursday, October 14, 2010 1:14 PM > To: 'General discussion for Windows Installer XML toolset.' > Subject: Re: [WiX-users] Simple Upgrade/Reinstall Question > > Product Id="*" > > -----Original Message----- > From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] > Sent: Thursday, October 14, 2010 8:30 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Simple Upgrade/Reinstall Question > > I could not get this to work, and still have the same issue where I get the > popup "Another version of this product is already installed". > > I tried several incantations, but just cannot seem to get this to work, here > is a snippet from my installer file, does anyone have any ideas as to what I > need to do? > > > <Product Id="7fdfd40c-167f-407c-868e-d72daf897f76" Name="XPedient > XPertJustice Application Server" > Language="1033" > Version="$(var.MajorVersion).$(var.MinorVersion).$(var.BuildNumber)" > UpgradeCode="c0557fad-2240-43d3-8e9c-653a7bc35015" > Manufacturer="XPedient Technologies"> > > <Property Id="DiskPrompt" Value="XPertJustice Application Server"/> > <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" /> > <Property Id="MSIUSEREALADMINDETECTION" Value="true" /> > <Upgrade Id="c0557fad-2240-43d3-8e9c-653a7bc35015"> > <UpgradeVersion Minimum="1.0.0.0" Maximum="2.0.0.0" > Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" > IncludeMaximum="no"> > </UpgradeVersion> > </Upgrade> > <MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="In > order to downgrade, you must first uninstall the newer version that is > currently installed."/> > <!--<MajorUpgrade AllowDowngrades="yes"/> --> > <!--<RemoveExistingProducts > After="InstallFinalize"></RemoveExistingProducts> --> > > > I left some of the various combinations commented out above, we are fast > pushing torwards a deployment, and need some insight or direction. > > > > -----Original Message----- > From: Alexander Kozlenko [mailto:alexander.kozle...@hotmail.com] > Sent: Thursday, October 07, 2010 4:06 PM > To: 'General discussion for Windows Installer XML toolset.' > Subject: Re: [WiX-users] Simple Upgrade/Reinstall Question > > Try to use this code:<MajorUpgrade AllowDowngrades="yes" />, but also you > need to suppress ICE61 for safely allowing downgrade. > > -----Original Message----- > From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] > Sent: Thursday, October 07, 2010 11:16 PM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Simple Upgrade/Reinstall Question > > I have been reading and searching through the mailing list, and I cannot seem > to get my arms around the upgrade markup. > Is there a simply way to indicate that anytime an install with the same > product id is detected that it should be uninstalled, regardless of the > version, and the install being executed ends up being installed as if it were > a fresh install? > > Thanks, > John > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports standards for > HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users