@@ -27,16 +27,24 @@ dir -r "${env:APPDATA}\Microsoft\Windows\Start Menu\Programs\Python*"
27
27
28
28
Write-Host " ##[section]Capture registry"
29
29
Write-Host ' Capture per-machine 32-bit registry'
30
- Write-Host " ##[command]dir -r "" HKLM:\Software\WOW6432Node\Python"" "
31
- dir - r " HKLM:\Software\WOW6432Node\Python"
30
+ # PS 5.0 and later can't do this, because they normalise registry paths incorrectly
31
+ # So we'll use the good old "reg" tool
32
+ # Write-Host "##[command]dir -r ""HKLM:\Software\WOW6432Node\Python"""
33
+ # dir -r "HKLM:\Software\WOW6432Node\Python"
34
+ Write-Host " ##[command]reg HKLM\Software\Python /s /reg:32"
35
+ reg HKLM\Software\Python / s / reg:32
32
36
33
37
Write-Host ' Capture per-machine native registry'
34
- Write-Host " ##[command]dir -r "" HKLM:\Software\Python"" "
35
- dir - r " HKLM:\Software\Python"
38
+ # Write-Host "##[command]dir -r ""HKLM:\Software\Python"""
39
+ # dir -r "HKLM:\Software\Python"
40
+ Write-Host " ##[command]reg HKLM\Software\Python /s /reg:64"
41
+ reg HKLM\Software\Python / s / reg:64
36
42
37
43
Write-Host ' Capture current-user registry'
38
- Write-Host " ##[command]dir -r "" HKCU:\Software\Python"" "
39
- dir - r " HKCU:\Software\Python"
44
+ # Write-Host "##[command]dir -r ""HKCU:\Software\Python"""
45
+ # dir -r "HKCU:\Software\Python"
46
+ Write-Host " ##[command]reg HKCU\Software\Python /s"
47
+ reg HKCU\Software\Python / s
40
48
41
49
42
50
if (-not $env: SkipTests ) {
0 commit comments