Answered by:
vb.net how to uninstall older version on new install

Question
-
User1801871119 posted
Folks,
how can i unistall previous version of my windows applcation which is with different name and location? on installing new versions?
any ideas?
Tuesday, July 12, 2011 9:10 AM
Answers
-
User-29804325 posted
Hi,
Based on my experience. There's some something when creating the Setup project in .NET.
- make sure the UpgradeCode is same as the old version.
- check the RemovePreviousVersions Property to see if it was set Ture.
- make sure the InstallAllUsers property is same as old version.
- Also check the Version property, you need to increment assembly version for each assembly that has changed since the previous deploy.
More information and workaround you can check these links:
http://www.codeproject.com/KB/system/msi_upgrade_uninstall.aspx
http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/9ae37554-8f1d-42a9-8da5-c95465c44fd6
Hope this can help you.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, July 15, 2011 3:55 AM
All replies
-
User-451260051 posted
You can generally do this using your Deployment Package. 3rd party packagers would be better at this sort of thing, like Setup Factory:
http://www.indigorose.com/products/setup-factory/http://www.indigorose.com/forums/threads/31507-Uninstalling-previous-version
Tuesday, July 12, 2011 9:20 AM -
User1801871119 posted
Thank you for your link. but unfortunately i cannot use 3rd party tool.
Is ther any way of doing it in VS 2010?. I found this post but still not able to uninstall automatically.
http://forums.asp.net/t/1404964.aspx/1?Installer+doesnot+uninstall+previous+version
any more thoughts.??
Tuesday, July 12, 2011 10:50 AM -
User-29804325 posted
Hi,
Based on my experience. There's some something when creating the Setup project in .NET.
- make sure the UpgradeCode is same as the old version.
- check the RemovePreviousVersions Property to see if it was set Ture.
- make sure the InstallAllUsers property is same as old version.
- Also check the Version property, you need to increment assembly version for each assembly that has changed since the previous deploy.
More information and workaround you can check these links:
http://www.codeproject.com/KB/system/msi_upgrade_uninstall.aspx
http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/9ae37554-8f1d-42a9-8da5-c95465c44fd6
Hope this can help you.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, July 15, 2011 3:55 AM