Oups...! My mistake : changing the productId *does* trigger a new installation (from scratch ... asking for install dir and all that) *but* my previous version is not removed... Any idea?
Thanks again. Fred Frédéric Viollet a écrit : > Hi everyone, > > I've changed a lot of things (files and directories) in my application, > and I'd like to remove any previously installed version of the product > before installing the new one. > Here's the situation.... > previous version of my product had the following items in the wxs: > <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> > <Product Id='EA8BD404-C4BB-400D-B658-7200355C4613' > UpgradeCode='F0B9C286-DA33-7842-A4FD-91F34F02D6B4' > Language='1033' > Manufacturer='MyCompany' > Name="Console 8.0.xxxx" > Version="8.0.xxxx.0"> > <Package Description='Console Installer' Compressed='yes' > InstallerVersion="300" /> > <Upgrade Id='F0B9C286-DA33-7842-A4FD-91F34F02D6B4'> > <UpgradeVersion OnlyDetect='yes' Property='PATCHFOUND' > IncludeMinimum='yes' Minimum='8.0.001' /> > </Upgrade> > <InstallExecuteSequence> > <RemoveExistingProducts After="FindRelatedProducts" /> > </InstallExecuteSequence> > > > New version's have the following items in the wxs: > <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> > <Product Id='18F6952C-38E1-6549-9B92-39DEE0608A7E' > UpgradeCode='F0B9C286-DA33-7842-A4FD-91F34F02D6B4' > Language='1033' > Manufacturer='MyCompany' > Name="Console 8.01.yyyy" > Version="8.01.yyyy.0"> > <Package Description='Policy Manager Console Installer' > Compressed='yes' InstallerVersion="300" /> > <Upgrade Id='F0B9C286-DA33-7842-A4FD-91F34F02D6B4'> > <UpgradeVersion OnlyDetect='yes' Property='PATCHFOUND' > IncludeMinimum='yes' Minimum='8.0.001' /> > </Upgrade> > <InstallExecuteSequence> > <RemoveExistingProducts After="FindRelatedProducts" /> > </InstallExecuteSequence> > > > As you can see, I've changed the ProductId, but left the UpgradeId > unchanged. But this doesn't work. It still is recognized as a minor upgrade. > Since a lot of things have changed in my new packaging, many components > have either been removed or added to the wxs. GUIDs have changed to. > > What would be, in you opinion, the best way to achieve what I'm trying > to do? i.e. remove previous versions (all 8.0.abcd.0 versions) before > starting a new installation (during this new installation, I'll need to > ask the user an installation directory. This is a thing I don't do > during upgrades. So I really need this new installation to be considered > as an installation from scratch). > > Thanks for your help. > > Fred > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users