Hello, I am trying to deploy VS2010 by using following batch script

"%~dp0Setup\setup.exe" /q /norestart /full /unattendfile "%~dp0Setup\VS2010_deployment.ini"

Its working perfect all is well, but in my orgn, some user machines already they have VS 2008 and VS 2005 installed so can any one suggest script to uninstall all previous versions silently before the above script begins??

I tried using msiexec /x {GUID} commands but unfortunately it didn't work for me.


Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


Though you have mentioned that your application works fine with the above method and you cannot uninstall the previous versions. I hope you would not like to have a situation like this in future when you have to upgrade VS2010.

Follow my blog to get more insight into proper installation and uninstallation of VS2010.


Answered 07/05/2012 by: piyushnasa
Red Belt

  • Hi Piyush, actually I followed your blog and MSDN both to finish the app :))), thats very helpful thanks for such a nice knowledge share. But here installation and uninstallation of VS2010 is fine for my case but I am facing trouble with old versions uninstallations...
Please log in to comment



Have you tried piyushnasa's tip from the blog?

If that does not work, I think there is a stub uninstall string for 2005 and 2008 in the uninstall-part of the registry. Search for the exact ARP DisplayName and take the uninstallstring from that and fiddle around with it. I know it can be a bastard making these silent though.

As a last resort, you might need to do a scripted uninstall for each product installed by VS separately using the uninstallstring for each GUID.

Answered 07/06/2012 by: andemats
Second Degree Black Belt

  • - I tried using "VS2010_Uninstall-RTM.ENU" to remove VS2008 and VS2005 but its not uninstalling the old versions...
    - Next as you mentioned i got the I searched for the uninstallation strings so I found this in the uninstall registry
    UnInstallString "C:\Program Files\Microsoft Visual Studio 9.0\Microsoft Visual Studio 2008 Professional Edition - ENU\setup.exe"

    so yes it is removing VS2008 but I am using swiches like /q /quiet /silent /verysilent like these but nothing is working for silent uninstall??
    any Ideas??? plz suggest me???
Please log in to comment

Finally found a way to silent uninstall of VS2008

"C:\Program Files\Microsoft Visual Studio 9.0\Microsoft Visual Studio 2008 Professional Edition - ENU\setup.exe" /q /uninstall /full

 But the above script will only unininstalls VS2008 but no the sql 2005 and MS SDK tools (I dnt need that anyways)

so thanks alot for the valuble suggessions guys


Answered 07/06/2012 by: ontari.ontari
Black Belt

  • Nice to hear that you found a solution.
    Regarding the SQL and tools, you need to uninstall them separately, it's not removed by the uninstaller. I guess MS have a reason for leaving them. =)
Please log in to comment
Answer this question or Comment on this question for clarity