Forum Discussion
newtotechcom-J
Sep 17, 2023Brass Contributor
Unable to uninstall Visual Studio Pro 2022 via Intune
Hi, I'm able to install Visual Studio Pro 2022 but unable to uninstall it via Intune. Following are the commands that I'm using: Install command vs_Professional.exe --nocache --wait --noUpda...
- 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
kunwaraman2130
Jan 03, 2024Copper Contributor
Hello Harm_ Veenstra,
I was trying to uninstall the Visual Studio Community 2022 version via your commands through Intune win32app.
I successfully uninstalled that Visual Studio Community as well.
But the problem is whenever I try to uninstall the Visual Studio 2022 community through this process another version like the professional, enterprise version also gets uninstalled.
Can anyone please provide me the specific uninstallation command for Visual Studio Community 2022 version or like 2017, 2019 community version.
Your help will be highly appreciable.
Thanks,
Kunwar Aman Singh
Jan 04, 2024
There is a InstallCleanup.exe tool that can uninstall a specific (2017/2019/2022) version using the -i 20xx parameter (20xx can be 2017/2019/2022). Could you try that? https://learn.microsoft.com/en-us/visualstudio/install/uninstall-visual-studio?view=vs-2022
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If one of the posts was helpful in other ways, please consider giving it a Like.
- kunwaraman2130Jan 04, 2024Copper Contributor
I already wrote that i can uninstall Visual Studio 2022 community with Intune by making both your mentioned commands on the notepad file and save it with.cmd extension
But the problem is when i tried this this uninstalls visual studio professional on my systemIs there any way that we can only uninstall Visual studio community 2022 not visual studio professional via intune.
- Jan 04, 2024
And that's why I asked if you uninstall it using installcleanup, does that change anything in that process?
- kunwaraman2130Jan 04, 2024Copper Contributor
Both Visual Studio had uninstalled because both(Professional and Community) versions are same.