|
I've got a Release version, and a Trial version, chosen by VS's configuration menu. I'd like the Release version to uninstall the Trial version automatically instead of telling the user to do it through the control panel. (Strange that VS did this automatically during testing, and I never noticed a problem until trying it outside of VS.) | | Happy-Fun-Ball Thursday, April 09, 2009 4:32 PM | In order to automatically uninstall the previous version, the new version needs to be a major upgrade (changes the ProductCode and the ProductVersion) and have the same UpgradeCode with an uninstall record authored into the Upgrade Table. See Patching and Upgrades. | | ColbyRingeisen Thursday, April 09, 2009 6:51 PM | That's what RemovePreviousVersions is for, assuming you've set it and incremented your setup project's version. Phil Wilson | | PhilWilson Thursday, April 09, 2009 7:54 PM | They're not really previous versions. They're both v1.0 and since both use the same version property variable, I'd need to manually fiddle the version number back and forth for each test, in addition to toggling the configuration. Unless I'm missing something, it seems kludgey. For Upgrading, can Product Code and Version be controlled by the configuration setting? | | Happy-Fun-Ball Thursday, April 09, 2009 11:28 PM | Hi Happy-Fun-Ball,
You should change the Version number each time when a new version is built. Even you build two version for Trial, you should set one is v1.0.1001 and another is v1.0.1002 for example, so that windows installer can recognize it as an upgraded version. When you build a Release version, change it to v1.1.1001 for example indicate it is a new RTM version. That why Microsoft Windows beta have long version number.
Sincerely, Kira Qian
Please mark the replies as answers if they help and unmark if they don't. | | Kira Qian Monday, April 13, 2009 3:31 AM | I tried changing the Release Version to 1.1.0, and getting a new Product Code. Now it doesn't complain about a previous version, just seems to install the Release version ..., but doesn't really. The Trial Version is still there, even though RemovePreviousVersion is true. The Upgrade Table (in Orca) Upgrade Code VersionMin VersionMax Language Attributes Remove ActionPerperty {0648DEBE-770C-42CF-A2EE-130C621FDB1B}, 1.1.0, , , 258, , NEWERPRODUCTFOUND {0648DEBE-770C-42CF-A2EE-130C621FDB1B}, , 1.1.0, , 0, , PREVIOUSVERSIONSINSTALLED
| | Happy-Fun-Ball Tuesday, April 14, 2009 6:18 AM | Make sure the InstallAllUsers values are the same. A Just me won't upgrade a Everyone and vice-versa. Phil Wilson | | PhilWilson Tuesday, April 14, 2009 6:55 PM | Hi Phil, I had by mistake deployed with InstallAllUsers = False, and now I am removing that old installation by editing upgrade table. I want that the new installation should put InstallAllUsers = true. Is that possible, got worried after reading your last reply on this post. Regards | | Number-One Friday, October 02, 2009 9:26 PM |
|