Downloads:

7,425

Downloads of v 11.0.1.20151219:

3,888

Last Update:

26 Jan 2016

Package Maintainer(s):

Software Author(s):

  • Microsoft

Tags:

Microsoft Visual Studio 2012 Professional IDE ALM

Visual Studio 2012 - Professional

11.0.1.20151219 | Updated: 26 Jan 2016

Downloads:

7,425

Downloads of v 11.0.1.20151219:

3,888

Maintainer(s):

Software Author(s):

  • Microsoft

Visual Studio 2012 - Professional 11.0.1.20151219

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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

>

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

>

To uninstall Visual Studio 2012 - Professional, 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 visualstudio2012professional -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 visualstudio2012professional -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 visualstudio2012professional installed
  win_chocolatey:
    name: visualstudio2012professional
    state: present
    version: 11.0.1.20151219
    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 'visualstudio2012professional' do
  action    :install
  version  '11.0.1.20151219'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: visualstudio2012professional,
    Version: 11.0.1.20151219,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller visualstudio2012professional
{
   Name     = 'visualstudio2012professional'
   Ensure   = 'Present'
   Version  = '11.0.1.20151219'
   Source   = 'STEP 3 URL'
}

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


package { 'visualstudio2012professional':
  provider => 'chocolatey',
  ensure   => '11.0.1.20151219',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install visualstudio2012professional version="11.0.1.20151219" 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 by moderator ferventcoder on 26 Jan 2016.

Description

This silently installs the 90 day trial (http://msdn.microsoft.com/en-us/library/gg442061.aspx) of Visual Studio Professional 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 Lord of the Rings Battle Axe and re-enact the battle of Isengard while you wait!
OPTIONAL FEATURES
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 VisualStudio2012Professional -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 InstallArguments parameter. Here are the available features:
Blend
LightSwitch
VC_MFC_Libraries
OfficeTools
SharepointTools
SQL
WebTools
SilverLight_Developer_Kit

Tools\AdminDeployment.xml
<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment">
   <BundleCustomizations TargetDir="default" NoWeb="yes"/>
   <SelectableItemCustomizations>
     <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="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" />
   </SelectableItemCustomizations>
</AdminDeploymentCustomizations>
Tools\ChocolateyInstall.ps1
. (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 'VisualStudio2012Professional' 'exe' $installerArgs 'http://go.microsoft.com/?linkid=9810233' -validExitCodes @(0, 3010)
Tools\ChocolateyUninstall.ps1
$app = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -eq "Microsoft Visual Studio Professional 2012" }
if($app -ne $null){
    $version=$app.Version
    $uninstaller=Get-Childitem "$env:ProgramData\Package Cache\" -Recurse -Filter vs_Professional.exe | ? { $_.VersionInfo.ProductVersion.startswith($version)}
    Uninstall-ChocolateyPackage 'VisualStudio2012Professional' 'exe' "/Uninstall /force /Passive /NoRestart" $uninstaller.FullName
}
Tools\common.ps1
Function Initialize-VS-Settings ($vsArgs, $unattendFile)
{
	
	$result = @{ 
		"ProductKey" = ""
	}

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

	$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 | % { 
	        $vsArgValues.Add(
	            $_.Groups[$PARAMATER_NAME_INDEX].Value.Trim(),
	            $_.Groups[$VALUE_INDEX].Value.Trim()) 
	    }

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

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

	    #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
	}

	$result
}

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

Ground Rules:

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