Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, March 27, 2017 8:54 AM
Hello everyone,
Just wondering if anyone has figured out how to silently uninstall VS2017?
For the installation
vs_enterprise.exe --productId "Microsoft.VisualStudio.Product.Enterprise" add "exampleworkload" --all --quiet seems to work
However when I go vs_enterprise.exe /uninstall --productId "Microsoft.VisualStudio.Product.Enterprise" --quiet it extracts the files and then crashes (does nothing)
I also tested with --passive, the installer shows but it's the same as if the passive switch wasn't there - still requires user intervention for the user to select "uninstall" .
Also is there a --log <directory> switch?
These options used to be available in 2015 and prior but I can't figure out for the life of me can't figure them out for 2017.
Thanks for reading.
All replies (10)
Tuesday, March 28, 2017 8:55 AM
So I've tested vs_enterprise.exe --remove [all the workloads here] and it works, except it doesn't remove the Core Editor component (obviously). As such this workaround would not be sufficient.
Would anyone be able to provide some syntax examples for each of the command line parameters? Someone from Microsoft? None of them seem to work, I'm most likely doing something spectacularly wrong as surely there must be a way to silently uninstall/modify installations.
Tuesday, March 28, 2017 9:57 AM
Hi MSDev88_771,
Thank you for posting in MSDN forum.
Could you please share us your detailed command? so that I could check if this question can be reproduced.
A screenshot of CMD would be much better, if you couldn't post image or link, please ask for a requirement in Verify Your Account 38
Thank you for your understanding and cooperation.
Best Regards.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Friday, March 31, 2017 2:09 PM
Hello Lana,
1) For reference this is the install command; this works perfectly.
2) Using this command the installer doesn't appear at all after the files have been extracted
3) The installer appears however human intervention is required (not passive).If the --quiet switch is used, the installer does not appear after the files have been extracted.
Regards,
Tuesday, April 4, 2017 1:36 AM | 1 vote
Hi,
--quiet, -q Optional: Do not display any user interface while performing the installation.
--passive, -p Optional: Display the user interface, but do not request any interaction from the user.
Refer to:
/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio
About using command to perform the uninstallation, please navigate to path:
C:\Program Files (x86)\Microsoft Visual Studio\Installer
Use the vs_installer to run the command as below to uninstall VS 2017:
Best Regards,
Joyce
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Thursday, May 4, 2017 8:10 AM
Hi Team,
I am trying to uninstall the VS2017Pro with the command which you have mentioned in your post. It uninstalls the product whichever I have installed. (I have used offline installer method to install the VS2017PRO) but after uninstallation it throws below error:
<Title> Uninstall Failure
Uninstall Failed
** OK**
(Need to remove above error box)
Request you to look into this and give the proper resolution for the silent uninstallation (Installation part is working properly)
Thanks in advance.
Regards,
Shreyash
Wednesday, January 24, 2018 6:02 PM
Hi Shreyash
Have you found a solution ? thanks.
Thursday, January 25, 2018 6:59 AM
Instead of using vs_enterprise.exe to uninstall you need to use this:
C:\program files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe
Friday, January 26, 2018 7:49 PM
Yes i use this installer and still have the error...
Friday, September 14, 2018 5:06 PM
Like others, I get the error message "uninstall failure / uninstall failed" when uninstalling Visual Studio Enterprise 2017 with the following command:
vs_installer.exe /uninstall --quiet
Although the product is uninstalled, the error message will confuse my end users.
Any progress on addressing/preventing the error message?
Regards,
James
Monday, October 8, 2018 6:47 PM
Just found this because I have exactly the same problem.
The documentation suggests that if you're running in quiet mode that any output is written to stdout and any errors to stderr so redirecting (eg with 2> c:\temp\vserror.txt) should capture any error messages but nothing gets written.
I tried a non-silent uninstall and got prompted to update the installer. I let it do that and then cancelled the install.
After that I ran the silent installer command that you used and it seems to uninstall properly. I'd guess what I need to do is find a way to do a silent update of the installer and then I can silently uninstall.
<later>
This pair of commands seems to work properly:
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" update --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise" --passive
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" uninstall --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise" --passive
The first one updates the installer (and everything else; very pleased I'm doing this on a fast internet connection!) and the second then uninstalls. I didn't try it with --quiet instead of --passive but I think it should work.
Hopefully someone else trying to work out how to do a silent uninstall of Visual Studio 2017 will find this useful!
Steve