How to silently install Visual Studio Code on Windows?
Asked Answered
S

3

2

Current observed behavior:

  • invoke VSCodeSetup.exe
  • install happens with no prompting
  • Code opens, which was a little surprising for a Windows package

I'm creating a Chocolatey package, and ideally, what I want:

  • no banner during install (but can live with it)
  • Code can't open! That's a deal breaker for a package manager, guys!

I realize that the thing just shipped v 0.1.0 and what I want may not be possible, but just wanted this out in the open in case

  1. it is possible, and
  2. others can help me figure out how.
Seidule answered 30/4, 2015 at 16:35 Comment(1)
If you want the installer changed, vote this guy up: visualstudio.uservoice.com/forums/293070-visual-studio-code/…Seidule
H
1

Since December the official installer supports this with the added commandline

/MERGETASKS=!runcode
Household answered 12/1, 2016 at 15:29 Comment(0)
F
0

Note that as of 1.10.x the -s switch no longer works on Windows 10. Use /SILENT, however, this still shows a dialog form with a "Cancel" button, when invoked interactively. Include /mergetasks=!runcode to suppress the launch after installation is completed. Tested on Windows 10 build 15058.

Firewood answered 16/3, 2017 at 3:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.