Forum Discussion
Unable to uninstall Visual Studio Pro 2022 via Intune
- Sep 19, 2023
newtotechcom-J I Installed it using your install command. I used this as the uninstall string, which also removes the Visual Studio installer after uninstalling Visual Studio Pro 2022:
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" /uninstall --passive
It does, however, leave the CoreEditorFonts installed. You can put the command above and this one below in one uninstall.cmd and use that as uninstall string:
MsiExec.exe /X{1851460E-0E63-4117-B5BA-25A2F045801B} /qn
Your initial uninstall string didn't work because it needed a space behind the Installpath before specifying the --quiet option
And that's why I asked if you uninstall it using installcleanup, does that change anything in that process?
Both Visual Studio had uninstalled because both(Professional and Community) versions are same.
- Jan 04, 2024
Ah, ok... Is the Community Edition installed in another location? (Not in "C:\Program Files\Microsoft Visual Studio\2022\Professional" I presume?) Then you could change the uninstall to something like this:
vs_Community.exe uninstall --installPath "C:\Program Files\Microsoft Visual Studio\2022\Community"--quiet --norestart
(I don't know the .exe name of the Community version)
- kunwaraman2130Jan 04, 2024Copper Contributor
When i tried this command(vs_Community.exe uninstall --installPath "C:\Program Files\Microsoft Visual Studio\2022\Community"--quiet --norestart) on Cmd or powershell as admin.
It sent me an error :Yes, FYI, My community edition is on the same path but this error came.
Please guide me the same.
- Jan 04, 2024
As I mentioned, I don't know the executable name of the community version. If you check the properties of the shortcut for it, what does it start?