Visual Studio Development Bookmark and Share   
 index > Visual Studio Setup and Installation > Remove All Versions before installing using VS.Net setup project
 

Remove All Versions before installing using VS.Net setup project

Hi,

If I use a combination of RemovePreviousVersions and UpgradeCode I can remove any previous versions of the app being installed - so 2.0.0.4 will be uninstalled when I try installing 2.0.0.5 - but how do I uninstall 2.0.0.5 when I install 2.0.0.4 - looks like the two properties mentioned above do not help while doing that. The target really is that only one version of the app should be installed at one time -

Any help will be appreciated.

Thanks, Shilpi

shilpi1510  Monday, October 12, 2009 10:46 PM
Hi Shilpi,

You can set the DetectNewerInstalledVersion Property to True in your setup project. This way, if 2.0.0.5 is installed and the user tries to install 2.0.0.4, Windows Installer will prompt a newer version is already installed and the current install session will end. The user must manually uninstall 2.0.0.5 to downgrade to previous versions.

Regards,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

If you have any feedback, please tell us.

The CodeFx Project
My Blog (in Simplified Chinese)
Wang, Jie  Tuesday, October 13, 2009 10:54 AM

You can use google to search for other answers

Custom Search

More Threads

• Devenv.exe fault in module gdiplus.dll - multiple times daily
• Where Can I Download VS2005 Express?
• License question
• VS2008/.NET 3.5 SP1 install - infinite restart loop
• Start Page -- Online Resources
• Cannot Open Solution File (*.sln) in Visual Studio 2005
• VS 2005 Pro Unattended Install Not Working
• Struggling to install vs2005 from MSDN DVD - what to do about the 2 disk folders?
• Visual Studio 2005 install fails on Windows 7 x64 rc because of MSXML 6.0
• Installing Visual Studio 2003pro help