Hrm, looking around a little bit it appears that the major version should have a max value of 255: http://msdn.microsoft.com/en-us/library/aa370859(VS.85).aspx
Which means that what I'm doing isn't a great long term solution. Is there another way to guarantee that my product will replace all of my previous ones without bumping the max version on every build? On Fri, Nov 7, 2008 at 2:45 PM, John Cooper (Volt) <[EMAIL PROTECTED]>wrote: > From: Colin Bleckner [mailto:[EMAIL PROTECTED] > Sent: Friday, November 07, 2008 2:40 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Better way to handle upgrades? > > Hey all, > > I build a lot of installers for my project. In an attempt to make it easy > for users to install a newer version over an existing installation, I've > been doing this: > > <?define InstallVersion = "X.0.0" ?> > <?define RTMInstallVersion = "1.0.0" ?> > .... > <Upgrade Id='$(var.UpgradeID)'> > <UpgradeVersion Minimum='$(var.InstallVersion)' IncludeMinimum='yes' > OnlyDetect='yes' Language='1033' Property='NEWERPRODUCTFOUND' /> > <UpgradeVersion Minimum='$(var.RTMInstallVersion)' > IncludeMinimum='yes' Maximum='$(var.InstallVersion)' IncludeMaximum='no' > Language='1033' Property='UPGRADEFOUND' /> > </Upgrade> > > Every time I do a build I bump the InstallVersion "X" up one. It's > obviously a hack, but has been working well. At least until now, when my > InstallVersion hit "128.0.0" and my build immediately started complaining > about an ICE61 error: "Upgrade.VersionMax cannot be less than > Upgrade.VersionMin. (UPGRADEFOUND)" > > I'm not entirely sure what's going on here, but my compile works if I set > InstallVersion to 127.0.0 and fails if I use 128.0.0. But more generally: > there must be a better way to handle upgrades, or am I just being too > liberal with the major version number? > > Colin > -----Original Message----- > > Sounds like version major is being stored in a signed char (or its > equivalent) with a range of -128..127 > > -- > John M. Cooper > > > ------------------------------------------------------------------------- > 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