Skip to content

Instantly share code, notes, and snippets.

@bbenoist
Created December 11, 2014 20:15
Show Gist options
  • Save bbenoist/ca65b602c41db5f2408d to your computer and use it in GitHub Desktop.
Save bbenoist/ca65b602c41db5f2408d to your computer and use it in GitHub Desktop.
[chocolatey][VisualStudio2012WDX] Avoid the compatibility-mode error by relying on the original name of the installer
try {
$packageName = 'VisualStudio2012WDX'
$setupFile="$env:temp\wdexpress_full.exe"
Get-ChocolateyWebFile "$packageName" "$setupFile" 'http://go.microsoft.com/?linkid=9816758' -checksum '6EEDE869379658DCC025E0FCD17BC2F8' -checksumType 'md5'
Install-ChocolateyInstallPackage "$packageName" 'exe' "/Passive /NoRestart /Log $env:temp\wdexpress_full.log" "$setupFile"
Write-ChocolateySuccess "$packageName"
} catch {
Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
throw
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment