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
Answers (3)
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
Have you tried piyushnasa's tip from the blog?
- VS2010_Uninstall-RTM.ENU.exe: This is the uninstall file provided by Microsoft and this will un-install any version of Visual Studio. You can download this from http://archive.msdn.microsoft.com/vs2010uninstall/Release/ProjectReleases.aspx?ReleaseId=4321
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
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