/build/static/layout/Breadcrumb_cap_w.png

For Visual Studio 2010 silent installation Previous all versions (VS2008, VS2005) Silent UnInstallation

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.

Thanks


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: piyushnasa 12 years ago
Red Belt
1

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.

http://msiworld.blogspot.com.au/2011/11/repackaging-microsoft-visual-studio.html


Comments:
  • 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...
    Thanks - ontari.ontari 12 years ago
Posted by: andemats 12 years ago
2nd Degree Black Belt
0

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.


Comments:
  • - 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??? - ontari.ontari 12 years ago
Posted by: ontari.ontari 12 years ago
Black Belt
0

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

 


Comments:
  • 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. =) - andemats 12 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ