SwitchHunt / catalog
Visual Studio Code - Silent Install Switch
The hand-curated silent install command for Visual Studio Code on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.
Silent install command
installer.exe /VERYSILENT /MERGETASKS=!runcode Silent uninstall command
"%ProgramFiles%\Microsoft VS Code\unins000.exe" /VERYSILENT Replace installer.exe with the actual installer filename (or its full path).
Notes & gotchas
Use the SYSTEM installer (VSCodeSetup-x64-*.exe). The download page and winget default to the USER installer (VSCodeUserSetup-*), which run as SYSTEM installs into SYSTEM's own profile - exit 0, and no real user ever sees it. Inno Setup: /MERGETASKS=!runcode stops it launching after install; add addcontextmenufiles,addtopath for shell integration + PATH.
Lab-tested
On 2026-10-12 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against Visual Studio Code 1.141.0, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.
FAQ
What is the silent install command for Visual Studio Code?
Run: installer.exe /VERYSILENT /MERGETASKS=!runcode
How do I silently uninstall Visual Studio Code?
Run: "%ProgramFiles%\Microsoft VS Code\unins000.exe" /VERYSILENT
Any gotchas installing Visual Studio Code unattended?
Use the SYSTEM installer (VSCodeSetup-x64-*.exe). The download page and winget default to the USER installer (VSCodeUserSetup-*), which run as SYSTEM installs into SYSTEM's own profile - exit 0, and no real user ever sees it. Inno Setup: /MERGETASKS=!runcode stops it launching after install; add addcontextmenufiles,addtopath for shell integration + PATH.
Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.