VS2010 Shell (Integrated) Redistributable 10.0.30319.1
This commit is contained in:
22
VS2010.ShellIntegratedRedist/tools/chocolateyInstall.ps1
Normal file
22
VS2010.ShellIntegratedRedist/tools/chocolateyInstall.ps1
Normal file
@@ -0,0 +1,22 @@
|
||||
$package = 'VS2010.ShellIntegratedRedist'
|
||||
|
||||
try {
|
||||
|
||||
# FYI - there is also an Isolated redist in addition to an Integrated one
|
||||
# http://www.microsoft.com/en-us/download/details.aspx?id=1366
|
||||
# http://download.microsoft.com/download/1/9/3/1939AD78-F8E8-4336-83F3-E2470F422C62/VSIsoShell.exe
|
||||
|
||||
$params = @{
|
||||
packageName = $package;
|
||||
fileType = 'exe';
|
||||
silentArgs = '/q /full /norestart';
|
||||
url = 'http://download.microsoft.com/download/D/7/0/D70CD265-3E18-41B0-AFC6-075AFA2DA631/VSIntShell.exe';
|
||||
}
|
||||
|
||||
Install-ChocolateyPackage @params
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
27
VS2010.ShellIntegratedRedist/tools/chocolateyUninstall.ps1
Normal file
27
VS2010.ShellIntegratedRedist/tools/chocolateyUninstall.ps1
Normal file
@@ -0,0 +1,27 @@
|
||||
$package = 'VS2010.ShellIntegratedRedist'
|
||||
|
||||
try {
|
||||
|
||||
# FYI - there is also an Isolated redist in addition to an Integrated one
|
||||
# http://www.microsoft.com/en-us/download/details.aspx?id=1366
|
||||
# http://download.microsoft.com/download/1/9/3/1939AD78-F8E8-4336-83F3-E2470F422C62/VSIsoShell.exe
|
||||
|
||||
# $productGuid = Get-ChildItem HKLM:\SOFTWARE\Classes\Installer\Products |
|
||||
# Get-ItemProperty -Name 'ProductName' |
|
||||
# ? { $_.ProductName -eq 'Microsoft Visual Studio 2010 Shell (Integrated) - ENU' } |
|
||||
# Select -ExpandProperty PSChildName -First 1
|
||||
|
||||
$productGuid = '3C62D210A21EADB3E8ECFD417E125A70'
|
||||
$properties = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\$productGuid\InstallProperties
|
||||
|
||||
$pkg = $properties.LocalPackage
|
||||
|
||||
msiexec.exe /x $pkg /qb-!
|
||||
|
||||
Install-ChocolateyPackage @params
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
Reference in New Issue
Block a user