Skip to content

Instantly share code, notes, and snippets.

View bbenoist's full-sized avatar
🔥

Baptist BENOIST bbenoist

🔥
View GitHub Profile
@bbenoist
bbenoist / chocolateyInstall.ps1
Created December 11, 2014 20:15
[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
}