Microsoft Visual Studio Code silent install and uninstall

Microsoft Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Microsoft Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

EXE x64arm64 Updated 19 Oct 2026
Vendor
Microsoft Corporation
Category
Developer Tools
Installer
Inno Setup
Architecture
x64, arm64
Checked version
1.142.0
winget ID
Microsoft.VisualStudioCode
License
Microsoft Software License
Download
Official download

Silent install

VSCodeSetup-x64-1.141.2.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /mergetasks=!runcode
  1. Download the installer from the direct download link.
  2. Open an elevated Command Prompt: right-click Command Prompt and select Run as administrator.
  3. Change to the folder with the installer, for example cd C:\Temp.
  4. Run the command above. Adjust the file name if you downloaded a different version.

Or install with winget

winget install --id Microsoft.VisualStudioCode --exact --silent --scope machine --accept-package-agreements --accept-source-agreements

Silent uninstall

winget
winget uninstall --id Microsoft.VisualStudioCode --exact --silent --accept-source-agreements

Run the command from an elevated Command Prompt.

About the Inno Setup installer

Inno Setup installers share one set of switches. The uninstaller is usually unins000.exe in the install folder and takes the same silent switches.

SwitchWhat it does
/VERYSILENTNo windows at all.
/SUPPRESSMSGBOXESAnswer message boxes with their default.
/NORESTARTDo not restart after setup.
/SP-Skip the "This will install..." prompt.
/ALLUSERSInstall for all users, if the setup supports both modes.
/DIR="path"Install folder.
/LOG="C:\Temp\install.log"Write a log file.

Deploy Microsoft Visual Studio Code with Microsoft Intune

Package the installer as a Win32 app (.intunewin) and use these settings:

Install commandVSCodeSetup-x64-1.141.2.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /mergetasks=!runcode
Uninstall command Use the uninstaller from the install folder; winget is not available to the SYSTEM account by default.
Install behaviorSystem

More developer tools apps