Compare commits

...

3 Commits

Author SHA1 Message Date
Ray
ae7e50b370 Test registry path before invoking Get-ChildItem (#95) 2021-05-25 10:26:11 +03:00
Alena Sviridenko
7d36f506c4 Merge pull request #94 from actions/update-versions-manifest-file
[versions-manifest] Update for release from 05/04/2021
2021-05-04 11:12:38 +03:00
Service account
f670a2adea Update versions-manifest 2021-05-04 08:10:58 +00:00
2 changed files with 148 additions and 6 deletions

View File

@@ -28,16 +28,20 @@ function Remove-RegistryEntries {
$versionFilter = Get-RegistryVersionFilter -Architecture $Architecture -MajorVersion $MajorVersion -MinorVersion $MinorVersion $versionFilter = Get-RegistryVersionFilter -Architecture $Architecture -MajorVersion $MajorVersion -MinorVersion $MinorVersion
$regPath = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products" $regPath = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products"
$regKeys = Get-ChildItem -Path Registry::$regPath -Recurse | Where-Object Property -Ccontains DisplayName if (Test-Path -Path Registry::$regPath) {
foreach ($key in $regKeys) { $regKeys = Get-ChildItem -Path Registry::$regPath -Recurse | Where-Object Property -Ccontains DisplayName
if ($key.getValue("DisplayName") -match $versionFilter) { foreach ($key in $regKeys) {
Remove-Item -Path $key.PSParentPath -Recurse -Force -Verbose if ($key.getValue("DisplayName") -match $versionFilter) {
Remove-Item -Path $key.PSParentPath -Recurse -Force -Verbose
}
} }
} }
$regPath = "HKEY_CLASSES_ROOT\Installer\Products" $regPath = "HKEY_CLASSES_ROOT\Installer\Products"
Get-ChildItem -Path Registry::$regPath | Where-Object { $_.GetValue("ProductName") -match $versionFilter } | ForEach-Object { if (Test-Path -Path Registry::$regPath) {
Remove-Item Registry::$_ -Recurse -Force -Verbose Get-ChildItem -Path Registry::$regPath | Where-Object { $_.GetValue("ProductName") -match $versionFilter } | ForEach-Object {
Remove-Item Registry::$_ -Recurse -Force -Verbose
}
} }
$uninstallRegistrySections = @( $uninstallRegistrySections = @(

View File

@@ -1,4 +1,50 @@
[ [
{
"version": "3.10.0-beta.1",
"stable": false,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.10.0-beta.1-107003",
"files": [
{
"filename": "python-3.10.0-beta.1-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-beta.1-107003/python-3.10.0-beta.1-darwin-x64.tar.gz"
},
{
"filename": "python-3.10.0-beta.1-linux-16.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "16.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-beta.1-107003/python-3.10.0-beta.1-linux-16.04-x64.tar.gz"
},
{
"filename": "python-3.10.0-beta.1-linux-18.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "18.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-beta.1-107003/python-3.10.0-beta.1-linux-18.04-x64.tar.gz"
},
{
"filename": "python-3.10.0-beta.1-linux-20.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "20.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-beta.1-107003/python-3.10.0-beta.1-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.10.0-beta.1-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-beta.1-107003/python-3.10.0-beta.1-win32-x64.zip"
},
{
"filename": "python-3.10.0-beta.1-win32-x86.zip",
"arch": "x86",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.10.0-beta.1-107003/python-3.10.0-beta.1-win32-x86.zip"
}
]
},
{ {
"version": "3.10.0-alpha.7", "version": "3.10.0-alpha.7",
"stable": false, "stable": false,
@@ -321,6 +367,52 @@
} }
] ]
}, },
{
"version": "3.9.5",
"stable": true,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.9.5-106999",
"files": [
{
"filename": "python-3.9.5-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.5-106999/python-3.9.5-darwin-x64.tar.gz"
},
{
"filename": "python-3.9.5-linux-16.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "16.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.5-106999/python-3.9.5-linux-16.04-x64.tar.gz"
},
{
"filename": "python-3.9.5-linux-18.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "18.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.5-106999/python-3.9.5-linux-18.04-x64.tar.gz"
},
{
"filename": "python-3.9.5-linux-20.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "20.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.5-106999/python-3.9.5-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.9.5-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.5-106999/python-3.9.5-win32-x64.zip"
},
{
"filename": "python-3.9.5-win32-x86.zip",
"arch": "x86",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.9.5-106999/python-3.9.5-win32-x86.zip"
}
]
},
{ {
"version": "3.9.4", "version": "3.9.4",
"stable": true, "stable": true,
@@ -827,6 +919,52 @@
} }
] ]
}, },
{
"version": "3.8.10",
"stable": true,
"release_url": "https://github.com/actions/python-versions/releases/tag/3.8.10-107001",
"files": [
{
"filename": "python-3.8.10-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-107001/python-3.8.10-darwin-x64.tar.gz"
},
{
"filename": "python-3.8.10-linux-16.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "16.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-107001/python-3.8.10-linux-16.04-x64.tar.gz"
},
{
"filename": "python-3.8.10-linux-18.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "18.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-107001/python-3.8.10-linux-18.04-x64.tar.gz"
},
{
"filename": "python-3.8.10-linux-20.04-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"platform_version": "20.04",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-107001/python-3.8.10-linux-20.04-x64.tar.gz"
},
{
"filename": "python-3.8.10-win32-x64.zip",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-107001/python-3.8.10-win32-x64.zip"
},
{
"filename": "python-3.8.10-win32-x86.zip",
"arch": "x86",
"platform": "win32",
"download_url": "https://github.com/actions/python-versions/releases/download/3.8.10-107001/python-3.8.10-win32-x86.zip"
}
]
},
{ {
"version": "3.8.9", "version": "3.8.9",
"stable": true, "stable": true,