Compare commits
40 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 41e5bb2c77 | |||
| 377d03cd57 | |||
| e68c876eef | |||
| bafafe0b03 | |||
| 877b6db711 | |||
| 572e1b8c6b | |||
| 2299a1c570 | |||
| 42c89ca94a | |||
| c63d3d41a9 | |||
| d35d265aa0 | |||
| d58fdbe79e | |||
| c5438521f1 | |||
| c67d314ddc | |||
| ae7e50b370 | |||
| 7d36f506c4 | |||
| f670a2adea | |||
| 505f65215c | |||
| 4598952486 | |||
| 42bcd17332 | |||
| 878244d959 | |||
| 42c2eea389 | |||
| 493c59469e | |||
| bd93b9d693 | |||
| d0e5494ee2 | |||
| 0601c2bfde | |||
| 4eb1751819 | |||
| 54aba042fd | |||
| 31ab2bc9f8 | |||
| 5f4f86cc5e | |||
| 8ea13d774e | |||
| afecc6a8b9 | |||
| f4b22cc454 | |||
| 281024aec4 | |||
| 17b1cd02ca | |||
| 33a76c361a | |||
| 371f79b70a | |||
| 3b961aaf4b | |||
| e67096ebd1 | |||
| bd7c907270 | |||
| 8a3240d440 |
@@ -28,16 +28,20 @@ function Remove-RegistryEntries {
|
||||
$versionFilter = Get-RegistryVersionFilter -Architecture $Architecture -MajorVersion $MajorVersion -MinorVersion $MinorVersion
|
||||
|
||||
$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
|
||||
foreach ($key in $regKeys) {
|
||||
if ($key.getValue("DisplayName") -match $versionFilter) {
|
||||
Remove-Item -Path $key.PSParentPath -Recurse -Force -Verbose
|
||||
if (Test-Path -Path Registry::$regPath) {
|
||||
$regKeys = Get-ChildItem -Path Registry::$regPath -Recurse | Where-Object Property -Ccontains DisplayName
|
||||
foreach ($key in $regKeys) {
|
||||
if ($key.getValue("DisplayName") -match $versionFilter) {
|
||||
Remove-Item -Path $key.PSParentPath -Recurse -Force -Verbose
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$regPath = "HKEY_CLASSES_ROOT\Installer\Products"
|
||||
Get-ChildItem -Path Registry::$regPath | Where-Object { $_.GetValue("ProductName") -match $versionFilter } | ForEach-Object {
|
||||
Remove-Item Registry::$_ -Recurse -Force -Verbose
|
||||
if (Test-Path -Path Registry::$regPath) {
|
||||
Get-ChildItem -Path Registry::$regPath | Where-Object { $_.GetValue("ProductName") -match $versionFilter } | ForEach-Object {
|
||||
Remove-Item Registry::$_ -Recurse -Force -Verbose
|
||||
}
|
||||
}
|
||||
|
||||
$uninstallRegistrySections = @(
|
||||
|
||||
@@ -21,9 +21,14 @@ function Analyze-MissingModules([string] $buildOutputLocation) {
|
||||
$regexMatch = [regex]::match($SplitBuiltOutput, $Pattern)
|
||||
if ($regexMatch.Success)
|
||||
{
|
||||
$module = $regexMatch.Groups[1].Value.Trim()
|
||||
Write-Host "Failed missing modules:"
|
||||
Write-Host $regexMatch.Groups[1].Value
|
||||
return 1
|
||||
Write-Host $module
|
||||
if ( ($module -eq "_tkinter") -and ( ($Version -like "3.10.0-beta*") -or ($Version -like "3.10.0-alpha*") ) ) {
|
||||
Write-Host "$module $Version ignored"
|
||||
} else {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
return 0
|
||||
@@ -82,4 +87,4 @@ Describe "Tests" {
|
||||
"./dist/simple-test" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+938
-21
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user