Visual Studio Professional 2022 silent install and uninstall
The trusted IDE for professional developers - from desktop to cloud.
- Vendor
- Microsoft Corporation
- Category
- Developer Tools
- Installer
- Custom EXE installer
- Architecture
- x64
- Checked version
- 17.14.42
- winget ID
Microsoft.VisualStudio.2022.Professional- License
- Proprietary
- Download
- Official download
Silent install
vs_Professional.exe --quiet --wait --campaign "winget" - Download the installer from the direct download link.
- Open an elevated Command Prompt: right-click Command Prompt and select Run as administrator.
- Change to the folder with the installer, for example
cd C:\Temp. - Run the command above. Adjust the file name if you downloaded a different version.
Or install with winget
winget install --id Microsoft.VisualStudio.2022.Professional --exact --silent --scope machine --accept-package-agreements --accept-source-agreements Silent uninstall
winget uninstall --id Microsoft.VisualStudio.2022.Professional --exact --silent --accept-source-agreements Run the command from an elevated Command Prompt.
About the Custom EXE installer installer
The vendor uses its own installer, so only the switches listed above are documented. Test them before mass deployment.
Deploy Visual Studio Professional 2022 with Microsoft Intune
Package the installer as a Win32 app (.intunewin) and use these settings:
| Install command | vs_Professional.exe --quiet --wait --campaign "winget" |
|---|---|
| Uninstall command | Use the uninstaller from the install folder; winget is not available to the SYSTEM account by default. |
| Install behavior | System |