Visual Studio Code Silent Install (How-To Guide)


Visual Studio Code is an IDE developed by Microsoft. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Visual Studio Code from the command line using the EXE installer.

How to Install Visual Studio Code Silently

Microsoft Visual Studio Code 32-bit Silent Install (EXE)

  1. Download the Visual Studio Code (32-bit) Installer
  2. Download the EXE to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command:
    • VSCodeSetup-ia32-x.y.z.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode
  6. Press Enter

After a minute or so you should see the Visual Studio Code shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Microsoft Visual Studio Code (32-bit)
Vendor:Microsoft Corporation
Architecture:x86
Installer Type:EXE
Silent Install Switch:VSCodeSetup-ia32-x.y.z.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode
Silent Uninstall Switch (32-bit System)"%ProgramFiles%\Microsoft VS Code\unins000.exe" /VERYSILENT /NORESTART
Silent Uninstall Switch (64-bit System)"%ProgramFiles(x86)%\Microsoft VS Code\unins000.exe" /VERYSILENT /NORESTART
Download Link:https://code.visualstudio.com/docs/?dv=win32
PowerShell Script:https://silentinstallhq.com/visual-studio-code-install-and-uninstall-powershell/

Microsoft Visual Studio Code 64-bit Silent Install (EXE)

  1. Download the Visual Studio Code (64-bit) Installer
  2. Download the EXE to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command:
    • VSCodeSetup-x64-x.y.z.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode
  6. Press Enter

After a minute or so you should see the Visual Studio Code shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:Microsoft Visual Studio Code (64-bit)
Vendor:Microsoft Corporation
Architecture:x64
Installer Type:EXE
Silent Install Switch:VSCodeSetup-x64-x.y.z.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode
Silent Uninstall Switch:"%ProgramFiles%\Microsoft VS Code\unins000.exe" /VERYSILENT /NORESTART
Download Link:https://code.visualstudio.com/docs/?dv=win64
PowerShell Script:https://silentinstallhq.com/visual-studio-code-install-and-uninstall-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create an Installation Log File

The Visual Studio Code installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

Visual Studio Code Silent Install (32-bit) with Logging

VSCodeSetup-ia32-x.y.z.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode /LOG="%WINDIR%\Temp\VSCode32-Install.log"

Visual Studio Code Silent Install (64-bit) with Logging

VSCodeSetup-x64-x.y.z.exe /VERYSILENT /NORESTART /MERGETASKS=!runcode /LOG="%WINDIR%\Temp\VSCode64-Install.log"

Change Default Installation Directory

You can also change the default installation directory by using the following command line parameters. In this example, I’m installing Visual Studio Code to “C:\VS_Code”

Visual Studio Code (32-bit)

VSCodeSetup-ia32-x.y.z.exe /DIR="C:\VS_Code" /VERYSILENT /NORESTART /MERGETASKS=!runcode

Visual Studio Code (64-bit)

VSCodeSetup-x64-x.y.z.exe /DIR="C:\VS_Code" /VERYSILENT /NORESTART /MERGETASKS=!runcode

How to Uninstall Visual Studio Code Silently

  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:

Visual Studio Code (32-bit) on 32-bit System

"%ProgramFiles%\Microsoft VS Code\unins000.exe" /VERYSILENT /NORESTART

Visual Studio Code (32-bit) on 64-bit System

"%ProgramFiles(x86)%\Microsoft VS Code\unins000.exe" /VERYSILENT /NORESTART

Visual Studio Code (64-bit) on 64-bit System

"%ProgramFiles%\Microsoft VS Code\unins000.exe" /VERYSILENT /NORESTART

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.

Recent Posts