Downloads:

90,701

Downloads of v 14.0.25123.01:

284

Last Update:

27 Jun 2016

Package Maintainer(s):

Software Author(s):

  • Microsoft

Tags:

Microsoft Visual Studio 2015 Community IDE admin

Visual Studio 2015 Community Update 2

This is not the latest version of Visual Studio 2015 Community Update 2 available.

14.0.25123.01 | Updated: 27 Jun 2016

Downloads:

90,701

Downloads of v 14.0.25123.01:

284

Software Author(s):

  • Microsoft

Visual Studio 2015 Community Update 2 14.0.25123.01

This is not the latest version of Visual Studio 2015 Community Update 2 available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Visual Studio 2015 Community Update 2, run the following command from the command line or from PowerShell:

>

To upgrade Visual Studio 2015 Community Update 2, run the following command from the command line or from PowerShell:

>

To uninstall Visual Studio 2015 Community Update 2, 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 visualstudio2015community -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 visualstudio2015community -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 visualstudio2015community installed
  win_chocolatey:
    name: visualstudio2015community
    state: present
    version: 14.0.25123.01
    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 'visualstudio2015community' do
  action    :install
  version  '14.0.25123.01'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: visualstudio2015community,
    Version: 14.0.25123.01,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller visualstudio2015community
{
   Name     = 'visualstudio2015community'
   Ensure   = 'Present'
   Version  = '14.0.25123.01'
   Source   = 'STEP 3 URL'
}

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


package { 'visualstudio2015community':
  provider => 'chocolatey',
  ensure   => '14.0.25123.01',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install visualstudio2015community version="14.0.25123.01" 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.

This package was approved by moderator dtgm on 03 Jul 2016.

Description

Overview

Free, full-featured and extensible tool for developers building non-enterprise applications.

- Full-featured Integrated Development Environment for building Web, Windows Desktop and cross-platform iOS, Android, and Windows apps.
- Ecosystem with thousands of extensions to choose from in the Visual Studio Gallery, or create your own.
- Free for open source projects, academic research, training, education and small professional teams.

### Customizations
You can customize the installation either by adding optional available features or by specifying own installation configuration file.

### Customizations
You can customize the installation either by specifying your own installation configuration file.

#### Adding optional features
Optional features (Sql tools, phone tools, etc.) are available but not installed by default.
To specify the features you want installed you can download the AdminDeployment.xml and modify it to support your needs.

https://raw.githubusercontent.com/KennethB/Chocolatey-Packages/master/VisualStudio2015Community/Tools/AdminDeployment.xml

Specifying the optional features above modifies the configuration file used during installation (AdminDeployment.xml). If that is not enough you can provide this file on your own.
Example:

choco install VisualStudio2015Community -packageParameters "--AdminFile c:\path to your\AdminDeployment.xml"
choco install VisualStudio2015Community -packageParameters "--AdminFile http://path/to/your/AdminDeployment.xml"


Tools\AdminDeployment.xml
<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment">
  <BundleCustomizations TargetDir="C:\Program Files (x86)\Microsoft Visual Studio 14.0" NoCacheOnlyMode="default" NoWeb="default" NoRefresh="default" SuppressRefreshPrompt="default" Feed="default" />
  <SelectableItemCustomizations>
    <SelectableItemCustomization Id="TypeScriptV6" Selected="yes" FriendlyName="TypeScript 1.7.6.0 for Visual Studio 2015 Update 1" />
    <SelectableItemCustomization Id="VSUV2RTMV2" Hidden="no" Selected="yes" FriendlyName="Visual Studio 2015 Update 2" />
    <SelectableItemCustomization Id="MicroUpdateV2.4" Selected="yes" FriendlyName="Update for Microsoft Visual Studio 2015 (KB3151378)" />
    <SelectableItemCustomization Id="NativeLanguageSupport_VCV1" Hidden="no" Selected="yes" FriendlyName="Common Tools for Visual C++ 2015" />
    <SelectableItemCustomization Id="NativeLanguageSupport_MFCV1" Hidden="no" Selected="yes" FriendlyName="Microsoft Foundation Classes for C++" />
    <SelectableItemCustomization Id="NativeLanguageSupport_XPV1" Hidden="no" Selected="yes" FriendlyName="Windows XP Support for C++" />
    <SelectableItemCustomization Id="Win81SDK_HiddenV1" Hidden="no" Selected="yes" FriendlyName="Windows 8.1 SDK and Universal CRT SDK" />
    <SelectableItemCustomization Id="WebToolsV1" Hidden="no" Selected="yes" FriendlyName="Microsoft Web Developer Tools" />
    <SelectableItemCustomization Id="PowerShellToolsV1" Hidden="no" Selected="yes" FriendlyName="PowerShell Tools for Visual Studio" />
    <SelectableItemCustomization Id="Node.jsV1" Hidden="no" Selected="yes" FriendlyName="Joyent Node.js" />
    <SelectableItemCustomization Id="GitForWindowsx64V3" Hidden="no" Selected="yes" FriendlyName="Git for Windows" />
    <SelectableItemCustomization Id="GitForWindowsx86V3" Hidden="no" Selected="yes" FriendlyName="Git for Windows" />
    <SelectableItemCustomization Id="GitHubVSV1" Hidden="no" Selected="yes" FriendlyName="GitHub Extension for Visual Studio" />
    <SelectableItemCustomization Id="JavaScript_HiddenV4" Selected="yes" FriendlyName="JavaScript Project System for Visual Studio" />
    <SelectableItemCustomization Id="JavaScript_HiddenV9" Selected="yes" FriendlyName="JavaScript Project System for Visual Studio" />
    <SelectableItemCustomization Id="MDDJSDependencyHiddenV1" Selected="yes" FriendlyName="MDDJSDependencyHidden" />
    <SelectableItemCustomization Id="AppInsightsToolsVisualStudioHiddenV4" Selected="yes" FriendlyName="Application Insights Tools (4.1.60107)" />
    <SelectableItemCustomization Id="AppInsightsToolsVisualStudioHiddenVSU2RTMV1" Selected="yes" FriendlyName="Developer Analytics Tools v5.2.0" />
    <SelectableItemCustomization Id="BlissHidden" Selected="yes" FriendlyName="BlissHidden" />
    <SelectableItemCustomization Id="HelpHidden" Selected="yes" FriendlyName="HelpHidden" />
    <SelectableItemCustomization Id="JavaScript" Selected="yes" FriendlyName="JavascriptHidden" />
    <SelectableItemCustomization Id="NetFX4Hidden" Selected="yes" FriendlyName="NetFX4Hidden" />
    <SelectableItemCustomization Id="NetFX45Hidden" Selected="yes" FriendlyName="NetFX45Hidden" />
    <SelectableItemCustomization Id="NetFX451MTPackHidden" Selected="yes" FriendlyName="NetFX451MTPackHidden" />
    <SelectableItemCustomization Id="NetFX451MTPackCoreHidden" Selected="yes" FriendlyName="NetFX451MTPackCoreHidden" />
    <SelectableItemCustomization Id="NetFX452MTPackHidden" Selected="yes" FriendlyName="NetFX452MTPackHidden" />
    <SelectableItemCustomization Id="NetFX46MTPackHidden" Selected="yes" FriendlyName="NetFX46MTPackHidden" />
    <SelectableItemCustomization Id="PortableDTPHidden" Selected="yes" FriendlyName="PortableDTPHidden" />
    <SelectableItemCustomization Id="PreEmptiveDotfuscatorHidden" Selected="yes" FriendlyName="PreEmptiveDotfuscatorHidden" />
    <SelectableItemCustomization Id="PreEmptiveAnalyticsHidden" Selected="yes" FriendlyName="PreEmptiveAnalyticsHidden" />
    <SelectableItemCustomization Id="ProfilerHidden" Selected="yes" FriendlyName="ProfilerHidden" />
    <SelectableItemCustomization Id="RoslynLanguageServicesHidden" Selected="yes" FriendlyName="RoslynLanguageServicesHidden" />
    <SelectableItemCustomization Id="SDKTools3Hidden" Selected="yes" FriendlyName="SDKTools3Hidden" />
    <SelectableItemCustomization Id="SDKTools4Hidden" Selected="yes" FriendlyName="SDKTools4Hidden" />
    <SelectableItemCustomization Id="WCFDataServicesHidden" Selected="yes" FriendlyName="WCFDataServicesHidden" />
    <SelectableItemCustomization Id="VSUV1" Hidden="no" Selected="no" FriendlyName="Visual Studio 2015 Update 1" />
    <SelectableItemCustomization Id="VSUV1PreReqV1" Selected="no" FriendlyName="Visual Studio 2015 Update 1 Prerequisite" />
    <SelectableItemCustomization Id="VSUV2PreReqV1" Selected="no" FriendlyName="Visual Studio 2015 Update 2 Prerequisite" />
    <SelectableItemCustomization Id="MicroUpdateV2" Selected="no" FriendlyName="MicroUpdate 2.0 for Visual Studio 2015 Update 2" />
    <SelectableItemCustomization Id="FSharpV1" Hidden="no" Selected="no" FriendlyName="Visual F#" />
    <SelectableItemCustomization Id="PythonToolsForVisualStudioV5" Hidden="no" Selected="no" FriendlyName="Python Tools for Visual Studio (March 2016)" />
    <SelectableItemCustomization Id="ClickOnceV1" Hidden="no" Selected="no" FriendlyName="ClickOnce Publishing Tools" />
    <SelectableItemCustomization Id="SQLV1" Hidden="no" Selected="no" FriendlyName="Microsoft SQL Server Data Tools" />
    <SelectableItemCustomization Id="SilverLight_Developer_KitV1" Hidden="no" Selected="no" FriendlyName="Silverlight Development Kit" />
    <SelectableItemCustomization Id="Windows10_ToolsAndSDKV10" Hidden="no" Selected="no" FriendlyName="Tools (1.3.2) and Windows 10 SDK (10.0.10586)" />
    <SelectableItemCustomization Id="Win10_EmulatorV1" Selected="no" FriendlyName="Emulators for Windows 10 Mobile (10.0.10240)" />
    <SelectableItemCustomization Id="Win10_EmulatorV2" Hidden="no" Selected="no" FriendlyName="Emulators for Windows 10 Mobile (10.0.10586)" />
    <SelectableItemCustomization Id="XamarinVSCoreV3" Hidden="no" Selected="no" FriendlyName="C#/.NET (Xamarin v4.0.4)" />
    <SelectableItemCustomization Id="XamarinPT_V1" Selected="no" FriendlyName="Xamarin Preparation Tool" />
    <SelectableItemCustomization Id="MDDJSCoreV10" Hidden="no" Selected="no" FriendlyName="HTML/JavaScript (Apache Cordova) Update 9" />
    <SelectableItemCustomization Id="AndroidNDKV1" Hidden="no" Selected="no" FriendlyName="Android Native Development Kit (R10E, 32 bits)" />
    <SelectableItemCustomization Id="AndroidNDK_32_V1" Hidden="no" Selected="no" FriendlyName="Android Native Development Kit (R10E, 32 bits)" />
    <SelectableItemCustomization Id="AndroidNDK_64_V1" Hidden="no" Selected="no" FriendlyName="Android Native Development Kit (R10E, 64 bits)" />
    <SelectableItemCustomization Id="AndroidSDKV1" Hidden="no" Selected="no" FriendlyName="Android SDK" />
    <SelectableItemCustomization Id="AndroidSDK_API1921V1" Hidden="no" Selected="no" FriendlyName="Android SDK Setup (API Level 19 and 21)" />
    <SelectableItemCustomization Id="AndroidSDK_API22V1" Hidden="no" Selected="no" FriendlyName="Android SDK Setup (API Level 22)" />
    <SelectableItemCustomization Id="AndroidSDK_API23V1" Hidden="no" Selected="no" FriendlyName="Android SDK Setup (API Level 23)" />
    <SelectableItemCustomization Id="AntV1" Hidden="no" Selected="no" FriendlyName="Apache Ant (1.9.3)" />
    <SelectableItemCustomization Id="L_MDDCPlusPlus_iOS_V6" Hidden="no" Selected="no" FriendlyName="Visual C++ iOS Development (Update 2)" />
    <SelectableItemCustomization Id="L_MDDCPlusPlus_Android_V6" Hidden="no" Selected="no" FriendlyName="Visual C++ Android Development (Update 2)" />
    <SelectableItemCustomization Id="L_MDDCPlusPlus_ClangC2_V5" Hidden="no" Selected="no" FriendlyName="Clang with Microsoft CodeGen (May 2016)" />
    <SelectableItemCustomization Id="L_IncrediBuild_V1" Selected="no" FriendlyName="IncrediBuild" />
    <SelectableItemCustomization Id="JavaJDKV1" Hidden="no" Selected="no" FriendlyName="Java SE Development Kit (7.0.550.13)" />
    <SelectableItemCustomization Id="VSEmu_AndroidV1.0.60404.1" Hidden="no" Selected="no" FriendlyName="Microsoft Visual Studio Emulator for Android (April 2016)" />
    <SelectableItemCustomization Id="WebSocket4NetV1" Hidden="no" Selected="no" FriendlyName="WebSocket4Net" />
    <SelectableItemCustomization Id="ToolsForWin81_WP80_WP81V1" Hidden="no" Selected="no" FriendlyName="Tools and Windows SDKs" />
    <SelectableItemCustomization Id="WindowsPhone81EmulatorsV1" Hidden="no" Selected="no" FriendlyName="Emulators for Windows Phone 8.1" />
    <SelectableItemCustomization Id="GitForWindowsx64V5" Hidden="no" Selected="no" FriendlyName="Git for Windows" />
    <SelectableItemCustomization Id="GitForWindowsx86V5" Hidden="no" Selected="no" FriendlyName="Git for Windows" />
    <SelectableItemCustomization Id="VS_SDK_GroupV4" Hidden="no" Selected="no" FriendlyName="Visual Studio Extensibility Tools Update 2" />
    <SelectableItemCustomization Id="VS_SDK_Breadcrumb_GroupV4" Selected="no" FriendlyName="Visual Studio Extensibility Tools Update 2" />
    <SelectableItemCustomization Id="Win10_VSToolsV10" Hidden="no" Selected="no" FriendlyName="Tools for Universal Windows Apps (1.3.2) and Windows 10 SDK (10.0.10586)" />
    <SelectableItemCustomization Id="Win10SDK_HiddenV1" Hidden="no" Selected="no" FriendlyName="Windows 10 SDK (10.0.10240)" />
    <SelectableItemCustomization Id="Win10SDK_HiddenV2" Selected="no" FriendlyName="Windows 10 SDK (10.0.10586)" />
    <SelectableItemCustomization Id="Win10SDK_HiddenV3" Selected="no" FriendlyName="Windows 10 SDK (10.0.10586)" />
    <SelectableItemCustomization Id="Win10SDK_VisibleV1" Hidden="no" Selected="no" FriendlyName="Windows 10 SDK 10.0.10240" />
    <SelectableItemCustomization Id="UWPPatch_KB3073097_HiddenV3" Selected="no" FriendlyName="KB3073097" />
    <SelectableItemCustomization Id="JavaScript_HiddenV1" Selected="no" FriendlyName="JavaScript Project System for Visual Studio" />
    <SelectableItemCustomization Id="AppInsightsToolsVisualStudioHiddenRTMV1" Selected="no" FriendlyName="Application Insights Tools" />
    <SelectableItemCustomization Id="AppInsightsToolsVSWinExpressHiddenVSU2RTMV1" Selected="no" FriendlyName="Developer Analytics Tools v5.2.0" />
    <SelectableItemCustomization Id="AppInsightsToolsVWDExpressHiddenVSU2RTMV1" Selected="no" FriendlyName="Developer Analytics Tools v5.2.0" />
  </SelectableItemCustomizations>
</AdminDeploymentCustomizations>
Tools\ChocolateyInstall.ps1
Import-Module (Join-Path $(Split-Path -parent $MyInvocation.MyCommand.Definition) 'VSModules.psm1')

Install-VS 'VisualStudio2015Community' 'http://download.microsoft.com/download/0/B/C/0BC321A4-013F-479C-84E6-4A2F90B11269/vs_community.exe' 'vs_community.exe'
Tools\ChocolateyUninstall.ps1
Import-Module (Join-Path $(Split-Path -parent $MyInvocation.MyCommand.Definition) 'VSModules.psm1')

Uninstall-VS 'VisualStudio2015Community' 'Microsoft Visual Studio Community 2015' 'vs_community.exe'
Tools\VSModules.psm1
# Parse input argument string into a hashtable
# Format: /AdminFile:file location /Features:WebTools,Win8SDK /ProductKey:AB-D1
function Parse-Parameters ($s)
{
    $parameters = @{ }

    if (!$s)
    {
        Write-Debug "No package parameters."
        return $parameters
    }

    Write-Debug "Package parameters: $s"
    $s = ' ' + $s
    [String[]] $kvpPrefix = @(" --")
    $kvpDelimiter = ' '

    $kvps = $s.Split($kvpPrefix, [System.StringSplitOptions]::RemoveEmptyEntries)
    foreach ($kvp in $kvps)
    {
        Write-Debug "Package parameter kvp: $kvp"
        $delimiterIndex = $kvp.IndexOf($kvpDelimiter)
        if (($delimiterIndex -le 0) -or ($delimiterIndex -ge ($kvp.Length - 1))) { continue }

        $key = $kvp.Substring(0, $delimiterIndex).Trim().ToLower()
        if ($key -eq '') { continue }
        $value = $kvp.Substring($delimiterIndex + 1).Trim()

        Write-Debug "Package parameter: key=$key, value=$value"
        $parameters.Add($key, $value)
    }

    return $parameters
}

# Generates customizations file. Returns its path
function Generate-Admin-File($parameters, $defaultAdminFile)
{
    $adminFile = $parameters['AdminFile']
    $features = $parameters['Features']
    if (!$adminFile -and !$features)
    {
        return $null
    }

    $localAdminFile = (Join-Path $env:temp 'AdminDeployment.xml')
    if (Test-Path $localAdminFile)
    {
        Remove-Item $localAdminFile
    }

    if ($adminFile)
    {
        if (Test-Path $adminFile)
        {
            Copy-Item $adminFile $localAdminFile -force
        }
        else
        {
            if (($adminFile -as [System.URI]).AbsoluteURI -ne $null)
            {
                Get-ChocolateyWebFile 'adminFile' $localAdminFile $adminFile
            }
            else
            {
                throw 'Invalid AdminFile setting.'
            }
        }
    }
    elseif ($features)
    {
        Copy-Item $defaultAdminFile $localAdminFile -force
    }

    return $localAdminFile
}

# Turns on features in the customizations file
function Update-Admin-File($parameters, $adminFile)
{
    if (!$adminFile) { return }
    $s = $parameters['Features']
    if (!$s) { return }

    $features = $s.Split(',')
    [xml]$xml = Get-Content $adminFile

    foreach ($feature in $features)
    {
        $node = $xml.DocumentElement.SelectableItemCustomizations.ChildNodes | ? {$_.Id -eq "$feature"}
        if ($node -ne $null)
        {
            $node.Selected = "yes"
        }
    }
    $xml.Save($adminFile)
}

function Generate-Install-Arguments-String($parameters, $adminFile)
{
    $s = "/Quiet /NoRestart /Log $env:temp\vs.log"

    if ($adminFile)
    {
        $s = $s + " /AdminFile $adminFile"
    }

    $pk = $parameters['ProductKey']
    if ($pk)
    {
        $s = $s + " /ProductKey $pk"
    }

    return $s
}

function Install-VS {
<#
.SYNOPSIS
Installs Visual Studio

.DESCRIPTION
Installs Visual Studio with ability to specify additional features and supply product key.

.PARAMETER PackageName
The name of the VisualStudio package - this is arbitrary.
It's recommended you call it the same as your nuget package id.

.PARAMETER Url
This is the url to download the VS web installer.

.EXAMPLE
Install-VS '[PackageName]' 'http://download.microsoft.com/download/zzz/vs_enterprise.exe'

.OUTPUTS
None

.NOTES
This helper reduces the number of lines one would have to write to download and install Visual Studio.
This method has no error handling built into it.

.LINK
Install-ChocolateyPackage
#>
param(
  [string] $packageName,
  [string] $url,
  [string] $exeName
)
    Write-Debug "Running 'Install-VS' for $packageName with url:`'$url`'";

    $installerType = 'exe'
    $validExitCodes = @(
        0, # success
        3010, # success, restart required
        2147781575, # pending restart required
        -2147185721, # pending restart required
        -2147205120, # pending restart not required
        -2147172352 # pending restart required
    )

    $defaultAdminFile = (Join-Path $PSScriptRoot 'AdminDeployment.xml')
    Write-Debug "Default AdminFile: $defaultAdminFile"

    $packageParameters = Parse-Parameters $env:chocolateyPackageParameters
    if ($packageParameters.Length -gt 0) { Write-Output $packageParameters }

    $adminFile = Generate-Admin-File $packageParameters $defaultAdminFile
    Write-Debug "AdminFile: $adminFile"

    Update-Admin-File $packageParameters $adminFile

    $silentArgs = Generate-Install-Arguments-String $packageParameters $adminFile
    
    DetermineSetupPath
	
    if (Test-Path env:\visualStudio:setupFolder)
    {
        Write-Output "Installing Visual Studio from $env:visualStudio:setupFolder"
        Install-ChocolateyInstallPackage `
          -PackageName $packageName `
          -FileType 'exe' `
          -SilentArgs $silentArgs `
          -File "$env:visualStudio:setupFolder\$exeName" `
          -ValidExitCodes $validExitCodes
    }
    else
    {
        Write-Output "Install-ChocolateyPackage $packageName $installerType $silentArgs $url -validExitCodes $validExitCodes"
        Install-ChocolateyPackage $packageName $installerType $silentArgs $url -validExitCodes $validExitCodes
    }

    TeardownIso

}

<#
Checks for user specified local path and mounts iso if necessary
#>
function DetermineSetupPath(){

    if (!(Test-Path env:\visualStudio:setupFolder)){

        if (!(Test-Path env:\visualStudio:isoImage)) 
        {
	        Write-Host "Visual Studio will be installed from Web"
            return
        }
        
        $global:mustDismountIso = $true;
        $mountedIso = Mount-DiskImage -PassThru "$env:visualStudio:isoImage"
        $isoDrive = Get-Volume -DiskImage $mountedIso | Select -expand DriveLetter
        Write-Host "Mounted ISO to $isoDrive"
        $env:visualStudio:setupFolder = "$isoDrive`:\"
    }
}

function TeardownIso(){
    
    if ($global:mustDismountIso){
        Write-Host "Dismounting ISO"
        Dismount-DiskImage -ImagePath $env:visualStudio:isoImage
    }
    else
    {
        Write-Host "No ISO to dismount"
    }
}

function Uninstall-VS {
<#
.SYNOPSIS
Uninstalls Visual Studio

.DESCRIPTION
Uninstalls Visual Studio.

.PARAMETER PackageName
The name of the VisualStudio package.

.PARAMETER ApplicationName
The VisualStudio app name - i.e. 'Microsoft Visual Studio Community 2015'.

.PARAMETER UninstallerName
This name of the installer executable - i.e. 'vs_community.exe'.

.EXAMPLE
Uninstall-VS 'VisualStudio2015Community' 'Microsoft Visual Studio Community 2015' 'vs_community.exe'

.OUTPUTS
None

.NOTES
This helper reduces the number of lines one would have to write to uninstall Visual Studio.
This method has no error handling built into it.

.LINK
Uninstall-ChocolateyPackage
#>
param(
  [string] $packageName,
  [string] $applicationName,
  [string] $uninstallerName
)
    Write-Debug "Running 'Uninstall-VS' for $packageName with url:`'$url`'";

    $installerType = 'exe'
    $silentArgs = '/Uninstall /force /Passive /NoRestart'

    $app = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -like "$applicationName*"} | Sort-Object { $_.Name } | Select-Object -First 1
    if ($app -ne $null)
    {
        $uninstaller = Get-Childitem "$env:ProgramData\Package Cache\" -Recurse -Filter $uninstallerName | ? { $_.VersionInfo.ProductVersion.StartsWith($app.Version)}
        if ($uninstaller -ne $null)
        {
            Uninstall-ChocolateyPackage $packageName $installerType $silentArgs $uninstaller.FullName
        }
    }
}

Export-ModuleMember Install-VS, Uninstall-VS

Log in or click on link to see number of positives.

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
Visual Studio 2015 Community Update 3 2015.03.02 60439 Monday, August 15, 2016 Approved
Visual Studio 2015 Community Update 3 2015.03.01 2066 Wednesday, June 29, 2016 Approved
Visual Studio 2015 Community Update 2 14.0.25123.01 284 Monday, June 27, 2016 Approved
Visual Studio 2015 Community Update 2 14.0.25123.00 1141 Thursday, April 7, 2016 Approved
Visual Studio 2015 Community Update 1 14.0.24720.01 1925 Wednesday, February 17, 2016 Approved
Visual Studio 2015 Community 14.0.23107.0 4850 Monday, July 20, 2015 Approved

  • Updated AdminDeploymebnt.xml for the latest release of Visual Studio Community 2015

This package has no dependencies.

Discussion for the Visual Studio 2015 Community Update 2 Package

Ground Rules:

  • This discussion is only about Visual Studio 2015 Community Update 2 and the Visual Studio 2015 Community Update 2 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 2015 Community Update 2, 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