Downloads of v


Last Update:

26 Jan 2016

Package Maintainer(s):

Software Author(s):

  • Microsoft


Microsoft Visual Studio 2012 Premium IDE ALM

Visual Studio 2012 - Premium

  • 1
  • 2
  • 3 | Updated: 26 Jan 2016



Downloads of v



Software Author(s):

  • Microsoft

  • 1
  • 2
  • 3
Visual Studio 2012 - Premium

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests

Validation Testing Passed

Verification Testing Passed


Scan Testing Successful:

No detections found in any package files


To install Visual Studio 2012 - Premium, run the following command from the command line or from PowerShell:


To upgrade Visual Studio 2012 - Premium, run the following command from the command line or from PowerShell:


To uninstall Visual Studio 2012 - Premium, 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 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

4. Choose your deployment method:

choco upgrade visualstudio2012premium -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 visualstudio2012premium -y --source="'STEP 3 URL'"

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

Exit $exitCode

- name: Ensure visualstudio2012premium installed
    name: visualstudio2012premium
    state: present
    source: STEP 3 URL

See docs at

chocolatey_package 'visualstudio2012premium' do
  action    :install
  version  ''
  source   'STEP 3 URL'

See docs at

    Name: visualstudio2012premium,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller visualstudio2012premium
   Name     = 'visualstudio2012premium'
   Ensure   = 'Present'
   Version  = ''
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'visualstudio2012premium':
  provider => 'chocolatey',
  ensure   => '',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

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

See docs at

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 by moderator ferventcoder on 26 Jan 2016.


This silently installs the 90 day trial ( of Visual Studio Premium along with the Microsoft .Net 4.5 Framework SDK. All Optional Features such as Blend, Sql Dev tools, Web dev tools, etc. are not installed. However, from the "Programs and Features" menu in Windows you can right click Microsoft Visual Studio Ultimate and choose "Change" and then add the features you want. This may take quite a while to install so grab your Chubaka mask and practice your wookie grunts with your co-workers while you wait!
All Optional Features such as Blend, Sql Dev tools, Web dev tools, etc. are not installed by default, but you can provide install arguments to add them. Here is an example that includes the Web Tools and SQL features:

cinst VisualStudio2012Premium -packageParameters "/Features:'WebTools SQL' /ProductKey:AB1CD-EF2GH-IJ3KL-MN4OP-QR5ST"

You simply need to send a white space delimited list of the features to install via the packageParameters parameter. Here are the available features:

<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns="">
   <BundleCustomizations TargetDir="default" NoWeb="yes"/>
     <SelectableItemCustomization Id="WebTools" Hidden="no" Selected="no"/>
     <SelectableItemCustomization Id="SQL" Hidden="no" Selected="no" />
     <SelectableItemCustomization Id="OfficeTools" Hidden="no" Selected="no"/>
     <SelectableItemCustomization Id="SharepointTools" Hidden="no" Selected="no"/>
     <SelectableItemCustomization Id="LightSwitch" Hidden="no" Selected="no"/>
     <SelectableItemCustomization Id="SilverLight_Developer_Kit" Hidden="no" Selected="no" />
     <SelectableItemCustomization Id="VC_MFC_Libraries" Hidden="no" Selected="no" />
     <SelectableItemCustomization Id="Blend" Hidden="no" Selected="no" />

     <SelectableItemCustomization Id="BlissHidden" Selected="yes" />
     <SelectableItemCustomization Id="HelpHidden" Selected="yes" />
     <SelectableItemCustomization Id="LocalDBHidden" Selected="yes" />
     <SelectableItemCustomization Id="NetFX4Hidden" Selected="yes" />
     <SelectableItemCustomization Id="NetFX45Hidden" Selected="yes" />
     <SelectableItemCustomization Id="PortableDTPHidden" Selected="yes" />
     <SelectableItemCustomization Id="PreEmptiveDotfuscatorHidden" Selected="no" />
     <SelectableItemCustomization Id="PreEmptiveAnalyticsHidden" Selected="no" />
     <SelectableItemCustomization Id="ProfilerHidden" Selected="yes" />
     <SelectableItemCustomization Id="ReportingHidden" Selected="yes" />
     <SelectableItemCustomization Id="RIAHidden" Selected="yes" />
     <SelectableItemCustomization Id="SDKTools3Hidden" Selected="yes" />
     <SelectableItemCustomization Id="SDKTools4Hidden" Selected="yes" />
     <SelectableItemCustomization Id="Silverlight5DRTHidden" Selected="yes" />
     <SelectableItemCustomization Id="SQLCEHidden" Selected="yes" />
     <SelectableItemCustomization Id="SQLCEToolsHidden" Selected="no" />
     <SelectableItemCustomization Id="SQLCLRTypesHidden" Selected="yes" />
     <SelectableItemCustomization Id="SQLDACHidden" Selected="yes" />
     <SelectableItemCustomization Id="SQLDbProviderHidden" Selected="yes" />
     <SelectableItemCustomization Id="SQLSharedManagementObjectsHidden" Selected="yes" />
     <SelectableItemCustomization Id="StoryboardingHidden" Selected="no" />
     <SelectableItemCustomization Id="TSQLHidden" Selected="yes" />
     <SelectableItemCustomization Id="VCCompilerHidden" Selected="yes" />
     <SelectableItemCustomization Id="VCCoreHidden" Selected="yes" />
     <SelectableItemCustomization Id="VCDebugHidden" Selected="yes" />
     <SelectableItemCustomization Id="VCDesigntimeHidden" Selected="yes" />
     <SelectableItemCustomization Id="VCExtendedHidden" Selected="yes" />
     <SelectableItemCustomization Id="WCFDataServicesHidden" Selected="yes" />
     <SelectableItemCustomization Id="WinJSHidden" Selected="yes" />
     <SelectableItemCustomization Id="WinSDKHidden" Selected="yes" />
. (Join-Path $(Split-Path -parent $MyInvocation.MyCommand.Definition) 'common.ps1')

$adminFile = (Join-Path $(Split-Path -parent $MyInvocation.MyCommand.Definition) 'AdminDeployment.xml')
$customArgs = $env:chocolateyPackageParameters

$settings = Initialize-VS-Settings $customArgs $adminFile
$installerArgs = Get-VS-Installer-Args $settings.ProductKey

Install-ChocolateyPackage 'VisualStudio2012Premium' 'exe' $installerArgs '' -validExitCodes @(0, 3010)
$app = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -eq "Microsoft Visual Studio Premium 2012" }
if($app -ne $null){
    $uninstaller=Get-Childitem "$env:ProgramData\Package Cache\" -Recurse -Filter vs_Premium.exe | ? { $_.VersionInfo.ProductVersion.startswith($version)}
    Uninstall-ChocolateyPackage 'VisualStudio2012Premium' 'exe' "/Uninstall /force /Passive /NoRestart" $uninstaller.FullName
Function Initialize-VS-Settings ($vsArgs, $unattendFile)
	$result = @{ 
		"ProductKey" = ""

	$MATCH_PATTERN = "/([a-zA-Z]+):([`"'])?([a-zA-Z0-9- _]+)([`"'])?"

	$productKey = ""

	#Test to see if anything was passed
	if($vsArgs -match $MATCH_PATTERN ){
	    #Construct a hastable of paramaters sent
	    #Format is /Key:Value (optional quotes) - Value can have [a-zA-Z0-9- _]+

	    $vsArgValues = @{ }
	    $results = $vsArgs | Select-String $MATCH_PATTERN -AllMatches  
	    $results.matches | % { 

	    #Initialize features unattended installation file
	    if($vsArgValues['Features']) {
	        $featuresToAdd = -split $vsArgValues['Features']
	        [xml]$adminXml=Get-Content $unattendFile

	        $featuresToAdd | % {
	            $node=$adminXml.DocumentElement.SelectableItemCustomizations.ChildNodes | ? {$_.Id -eq "$feature"}
	            if($node -ne $null){

	    #Return back the product key
	    if($vsArgValues['ProductKey']) {
	        $result["ProductKey"] = $vsArgValues['ProductKey']

	New-Object PSObject -Property $result

Function Get-VS-Installer-Args ($productKey='') {
	$result = "/Passive /NoRestart /AdminFile $adminFile /Log $env:temp\vs.log"
	if($settings.ProductKey -ne "") {

	    $result = "{0} /ProductKey {1}" -f $result, $settings.ProductKey


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 2012 - Premium 11.0.1 1443 Monday, November 19, 2012 Approved
Visual Studio 2012 - Premium 11.0 479 Wednesday, August 22, 2012 Unknown
Discussion for the Visual Studio 2012 - Premium Package

Ground Rules:

  • This discussion is only about Visual Studio 2012 - Premium and the Visual Studio 2012 - Premium 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 2012 - Premium, 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