Skip to content

Commit 9c73860

Browse files
committed
Add VS 2022 Remote Tools
1 parent cf98663 commit 9c73860

File tree

4 files changed

+123
-0
lines changed

4 files changed

+123
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Set-StrictMode -Version 2
2+
$ErrorActionPreference = 'Stop'
3+
4+
. (Join-Path -Path (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) -ChildPath 'data.ps1')
5+
$packageName = $otherData.PackageName
6+
$installerType = 'exe'
7+
$silentArgs = '/quiet /norestart'
8+
$validExitCodes = @(0, 3010)
9+
10+
Set-StrictMode -Off
11+
Install-ChocolateyPackage -PackageName $packageName `
12+
-FileType $installerType `
13+
-SilentArgs $silentArgs `
14+
-ValidExitCodes $validExitCodes `
15+
@installData32 `
16+
@installData64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Set-StrictMode -Version 2
2+
$ErrorActionPreference = 'Stop'
3+
4+
. (Join-Path -Path (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) -ChildPath 'data.ps1')
5+
$packageName = $otherData.PackageName
6+
$installerType = 'exe'
7+
$silentArgs = '/uninstall /quiet'
8+
$validExitCodes = @(0, 3010) # http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx
9+
10+
Set-StrictMode -Off
11+
[array] $uninstallKeys = Get-UninstallRegistryKey @uninstallData
12+
Set-StrictMode -Version 2
13+
[array] $filteredUninstallKeys = $uninstallKeys | Where-Object { $null -ne $_ -and ($null -eq $_.PSObject.Properties['SystemComponent'] -or $_.SystemComponent -eq 0) }
14+
foreach ($uninstallKey in $filteredUninstallKeys)
15+
{
16+
if ($null -eq $uninstallKey)
17+
{
18+
# this might happen on PS 2.0
19+
continue
20+
}
21+
22+
if ($null -ne $uninstallKey.PSObject.Properties['UninstallString'])
23+
{
24+
$uninstallString = $uninstallKey.UninstallString
25+
Write-Verbose "Found uninstall key, UninstallString = $uninstallString"
26+
if ($uninstallString -match '^"?(.*?)(".*)?$')
27+
{
28+
$uninstallerPath = $matches[1]
29+
Set-StrictMode -Off
30+
Uninstall-ChocolateyPackage -PackageName $packageName `
31+
-FileType $installerType `
32+
-SilentArgs $silentArgs `
33+
-File $uninstallerPath `
34+
-ValidExitCodes $validExitCodes
35+
Set-StrictMode -Version 2
36+
}
37+
else
38+
{
39+
Write-Warning "The uninstall information in the registry is in an unknown format. Please report this to package maintainers. Data from the registry: [$uninstallString]"
40+
}
41+
}
42+
else
43+
{
44+
Write-Warning "The uninstall information in the registry does not contain the path to the uninstaller application. Please report this to package maintainers. Registry key path: [$($uninstallKey.PSPath)]"
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
$installData32 = @{
2+
Url = 'https://download.visualstudio.microsoft.com/download/pr/6a4c74cd-8ee0-4757-9620-a11a5b48b1a7/37a5dc605533450e9664a82f51128830fc70cb5f940ede139e869130c9227130/VS_RemoteTools.exe'
3+
Checksum = '37A5DC605533450E9664A82F51128830FC70CB5F940EDE139E869130C9227130'
4+
ChecksumType = 'sha256'
5+
}
6+
7+
$installData64 = @{
8+
Url64 = 'https://download.visualstudio.microsoft.com/download/pr/6a4c74cd-8ee0-4757-9620-a11a5b48b1a7/8f155fea1367ba32092ed0c408141dc532f21a7c916f5e459e3585bb267222ca/VS_RemoteTools.exe'
9+
Checksum64 = '8F155FEA1367BA32092ED0C408141DC532F21A7C916F5E459E3585BB267222CA'
10+
ChecksumType64 = 'sha256'
11+
}
12+
13+
# $installDataArm64 = @{
14+
# Url64 = 'https://download.visualstudio.microsoft.com/download/pr/6a4c74cd-8ee0-4757-9620-a11a5b48b1a7/ce2821443e00c1c1d754e42654f1aaead2a48ca77fae2457c3f6843c157fc74f/VS_RemoteTools.exe'
15+
# Checksum64 = 'CE2821443E00C1C1D754E42654F1AAEAD2A48CA77FAE2457C3F6843C157FC74F'
16+
# ChecksumType64 = 'sha256'
17+
# }
18+
19+
$uninstallData = @{
20+
SoftwareName = 'Remote Tools for Visual Studio 2022'
21+
}
22+
23+
$otherData = @{
24+
PackageName = 'visualstudio2022-remotetools'
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0"?>
2+
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
3+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
4+
<metadata>
5+
<id>visualstudio2022-remotetools</id>
6+
<version>17.0.33103.184</version>
7+
<packageSourceUrl>https://github.com/jberezanski/ChocolateyPackages/tree/master/visualstudio2022-remotetools</packageSourceUrl>
8+
<owners>jberezanski</owners>
9+
<title>Microsoft Visual Studio 2022 Remote Tools</title>
10+
<authors>Microsoft</authors>
11+
<projectUrl>https://visualstudio.microsoft.com/</projectUrl>
12+
<iconUrl>https://rawcdn.githack.com/jberezanski/ChocolateyPackages/7e32702d4d99f08b5b73ae9c6622b0be61a2066e/icons/vs2022.png</iconUrl>
13+
<copyright>https://www.microsoft.com/en-us/legal/intellectualproperty/permissions</copyright>
14+
<licenseUrl>https://visualstudio.microsoft.com/license-terms/mlt031519/</licenseUrl>
15+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
16+
<docsUrl>https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging</docsUrl>
17+
<bugTrackerUrl>https://developercommunity.visualstudio.com/</bugTrackerUrl>
18+
<tags>microsoft visual studio visualstudio vs 2022 remote tools debugging debugger msvsmon admin</tags>
19+
<summary>Enables app deployment, remote debugging, remote testing, performance profiling, and unit testing on computers that do not have Visual Studio installed.</summary>
20+
<description>Remote Tools for Visual Studio 2022 enables app deployment, remote debugging, remote testing, performance profiling, and unit testing on computers that do not have Visual Studio installed.
21+
22+
## Notes
23+
24+
[Supported Operating Systems](https://learn.microsoft.com/en-us/visualstudio/releases/2022/system-requirements#supported-operating-systems): Windows 11 (x64 and arm64), Windows 10 (x64), Windows Server 2022 / 2019 / 2016 (x64)
25+
</description>
26+
<releaseNotes>
27+
##### Software
28+
[Visual Studio 2022 Release Notes](https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes)
29+
##### Package
30+
17.0.33103.184: Initial package release for software version 17.0.33103.184.
31+
</releaseNotes>
32+
<dependencies>
33+
<dependency id="chocolatey-core.extension" version="1.1.0" />
34+
</dependencies>
35+
</metadata>
36+
</package>

0 commit comments

Comments
 (0)