Only issue I have with that approach is that it doesn't document intent whereas explicitly stating an auto-generated guid using ?s does.
On Wed, Sep 3, 2008 at 20:24, Alexander Shevchuk < [EMAIL PROTECTED]> wrote: > Warning message is saying what need to be done: > > "... Please remove the Id attribute in order to automatically generate a > new package code for each new .msi file." > > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Jay H. Cho > Sent: Wednesday, September 03, 2008 1:24 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] WIX built MSI uninstall compatibility problem (2nd > try) > > Hi, everyone ** including more information ** > > I have question on maintaining uninstall version compatibility. > In order to make new msi build able to uninstall the previous version I > assigned fixed guid to > Id attribute in my package tag; looks like below: > > <Product UpgradeCode="F3485790-281D-400C-A76C-C12B5AD7EE50" Name="W > Service" > Id="E7DB0CC6-0423-4B73-90BB-473406592C01" Version="1.0.0" > Manufacturer="Corporation Experience" Language="1033"> > <Package Id="516E8548-CA5D-431F-80FC-4CFDD8999ED5" > Manufacturer="Corporation Experience" InstallerVersion="200" > Languages="1033" Compressed="yes" SummaryCodepage="1252" /> > > <Upgrade Id="F3485790-281D-400C-A76C-C12B5AD7EE50" > > <UpgradeVersion Minimum="1.0.0" Property="NEWERPRODUCTFOUND" > OnlyDetect="yes" IncludeMinimum="yes" /> > </Upgrade> > <Media Id="1" EmbedCab="yes" Cabinet="_1DB1A4518738299294125E0171CEB0DB" > /> > > > The problem is above generates warning during compilation, is there anyway > to eliminate the > warning during compile? Is there better way to ensure compatibility? > > Here is what my warning message look like: > > c:\enlistments\source\services.install\product.wxs(36) : warning CNDL1091: > The Package/@Id attribute has > been set. Setting this attribute will allow nonidentical .msi files to > have the same package code. This may be a prob > lem because the package code is the primary identifier used by the > installer > to search for and validate the correct pack > age for a given installation. If a package is changed without changing the > package code, the installer may not use the > newer package if both are still accessible to the installer. Please remove > the Id attribute in order to automatically g > enerate a new package code for each new .msi file. > > > Thank you. > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users