The exact silent switches the Microsoft Visual Studio Code installer accepts, plus a one-line command you can paste into a script, Intune Win32 app, or Configuration Manager package.
VSCodeUserSetup-x64-1.124.2.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /mergetasks=!runcode
Run from the directory containing VSCodeUserSetup-x64-1.124.2.exe. Download the installer from the Direct link below first.
| Architecture | Scope | Type | Silent switches | Source |
|---|---|---|---|---|
| x64 | user | EXE Inno Setup | Custom: /mergetasks=!runcode | Default for Inno Setup |
| x64 | machine | EXE Inno Setup | Custom: /mergetasks=!runcode | Default for Inno Setup |
| arm64 | user | EXE Inno Setup | Custom: /mergetasks=!runcode | Default for Inno Setup |
| arm64 | machine | EXE Inno Setup | Custom: /mergetasks=!runcode | Default for Inno Setup |
/S for NSIS, /quiet /norestart for MSI).Prefer the winget route? See the full Microsoft Visual Studio Code install page.