Visual Studio Code

This is not the latest version of Visual Studio Code available.

1.4 | Updated: 8/5/2016

Downloads:

673,072

Downloads of v 1.4:

7,101

Software Author(s):

  • Microsoft

Visual Studio Code 1.4

This is not the latest version of Visual Studio Code available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Visual Studio Code, run the following command from the command line or from PowerShell:

>

To upgrade Visual Studio Code, run the following command from the command line or from PowerShell:

>

To uninstall Visual Studio Code, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade visualstudiocode -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade visualstudiocode -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure visualstudiocode installed
  win_chocolatey:
    name: visualstudiocode
    state: present
    version: 1.4
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'visualstudiocode' do
  action    :install
  version  '1.4'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: visualstudiocode,
    Version: 1.4,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller visualstudiocode
{
   Name     = 'visualstudiocode'
   Ensure   = 'Present'
   Version  = '1.4'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'visualstudiocode':
  provider => 'chocolatey',
  ensure   => '1.4',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install visualstudiocode version="1.4" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 8/5/2016.

Description

Build and debug modern web and cloud applications. Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.

Package Specifics

The package uses default install options except that it adds context menu entries and Visual Studio Code isn't started after installation.

Package Parameters

The following package parameters can be set:

  • /NoDesktopIcon - Don't add a desktop icon for Visual Studio Code.
  • /NoQuicklaunchIcon - Don't add an icon for Visual Studio Code to the QuickLaunch area.
  • /NoContextMenuFiles - Don't add an Open with Code entry to the context menu for files.
  • /NoContextMenuFolders - Dont't add an Open with Code entry to the context menu for folders.
  • /DontAddToPath - Don't add Visual Studio Code to the path.

These parameters can be passed to the installer with the use of -params.
For example: -params '"/NoDesktopIcon /DontAddToPath"'.


Tools\ChocolateyInstall.ps1
# Default values
$createDesktopIcon = $true
$createQuickLaunchIcon = $true
$addContextMenuFiles = $true
$addContextMenuFolders = $true
$addToPath = $true

$arguments = @{}
$packageParameters = $env:chocolateyPackageParameters
if ($packageParameters)
{
      $match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
      $option_name = 'option'
      $value_name = 'value'
      if ($packageParameters -match $match_pattern )
      {
          $results = $packageParameters | Select-String $match_pattern -AllMatches
          $results.matches | % {
            $arguments.Add(
                $_.Groups[$option_name].Value.Trim(),
                $_.Groups[$value_name].Value.Trim())
          }
      }
      else
      {
          Throw "Package Parameters were found but were invalid (REGEX Failure)"
      }

      if ($arguments.ContainsKey("nodesktopicon"))
      {
          Write-Host "nodesktopicon"
          $createDesktopIcon = $false
      }

      if ($arguments.ContainsKey("noquicklaunchicon"))
      {
          Write-Host "noquicklaunchicon"
          $createQuickLaunchIcon = $false
      }

      if ($arguments.ContainsKey("nocontextmenufiles"))
      {
          Write-Host "nocontextmenufiles"
          $addContextMenuFiles = $false
      }

      if ($arguments.ContainsKey("nocontextmenufolders"))
      {
          Write-Host "nocontextmenufolders"
          $addContextMenuFolders = $false
      }

      if ($arguments.ContainsKey("dontaddtopath"))
      {
          Write-Host "dontaddtopath"
          $addToPath = $false
      }
}
else
{
    Write-Debug "No Package Parameters Passed in"
}

$mergeTasks = "!runCode"
if ($createDesktopIcon)
{
    $mergeTasks = $mergeTasks + ",desktopicon"
}

if ($createQuickLaunchIcon)
{
    $mergeTasks = $mergeTasks + ",quicklaunchicon"
}

if ($addContextMenuFiles)
{
    $mergeTasks = $mergeTasks + ",addcontextmenufiles"
}

if ($addContextMenuFolders)
{
    $mergeTasks = $mergeTasks + ",addcontextmenufolders"
}

if ($addToPath)
{
    $mergeTasks = $mergeTasks + ",addtopath"
}

Write-Host "Merge Tasks: "
Write-Host "$mergeTasks"

$packageName = 'VisualStudioCode'
$installerType = 'exe'
$silentArgs = "/silent /mergetasks=$mergeTasks /log=""$env:temp\vscode.log"""
$32BitUrl  = 'https://az764295.vo.msecnd.net/stable/6276dcb0ae497766056b4c09ea75be1d76a8b679/VSCodeSetup-stable.exe'
$validExitCodes = @(
    0 # success
)

Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$32BitUrl" -validExitCodes $validExitCodes
Tools\VSCodeSetup-stable.exe.ignore
 
VisualStudioCode.png
 

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
[Deprecated] Visual Studio Code 1.23.1.20180513 29606 Sunday, May 13, 2018 Approved
Visual Studio Code 1.23.1 8281 Friday, May 11, 2018 Approved
Visual Studio Code 1.23.0 11242 Thursday, May 3, 2018 Approved
Visual Studio Code 1.22.2 26723 Friday, April 13, 2018 Approved
Visual Studio Code 1.22.1 166 Friday, April 6, 2018 Approved
Visual Studio Code 1.21.1 32021 Thursday, March 15, 2018 Approved
Visual Studio Code 1.21.0 9739 Thursday, March 8, 2018 Approved
Visual Studio Code 1.20.1 25927 Wednesday, February 14, 2018 Approved
Visual Studio Code 1.20.0 10081 Thursday, February 8, 2018 Approved
Discussion for the Visual Studio Code Package

Ground Rules:

  • This discussion is only about Visual Studio Code and the Visual Studio Code package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Visual Studio Code, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus