Skip to content

Instantly share code, notes, and snippets.

@dmc-tech
Last active September 1, 2023 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmc-tech/fa0dbe0f1a44e305602f3d2a7a637e33 to your computer and use it in GitHub Desktop.
Save dmc-tech/fa0dbe0f1a44e305602f3d2a7a637e33 to your computer and use it in GitHub Desktop.
# One liner to install VS Code to Windows System
$ProgressPreference = 'SilentlyContinue'; $Path = $env:TEMP; $Installer = "vscode_installer.exe"; $installerArgs = "/silent /mergetasks=!runcode,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"; Invoke-WebRequest "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64" -OutFile "$Path\$Installer"; Start-Process -FilePath "$Path\$Installer" -Args $installerArgs -Verb RunAs -Wait; Remove-Item "$Path\$Installer"
@dmc-tech
Copy link
Author

One liner to install latest version of VS Code for Windows x64

@dmc-tech
Copy link
Author

dmc-tech commented Sep 1, 2023

@dmc-tech
Copy link
Author

dmc-tech commented Sep 1, 2023

Fix: args formatted correctly

@dmc-tech
Copy link
Author

dmc-tech commented Sep 1, 2023

fix: remove progress to speed up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment