python: Tweak manifest (#5850)

This commit is contained in:
Hsiao-nan Cheung 2024-05-20 14:13:32 +08:00 committed by GitHub
parent d0add1e4d8
commit 278e9343d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,8 +55,8 @@
"}",
"Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse",
"if ($global) {",
" $pathext = (Get-EnvVar -Name PATHEXT -Global:$true) -replace ';.PYW?', ''",
" Set-EnvVar -Name PATHEXT -Value \"$pathext;.PY;.PYW\" -Global:$true",
" $pathext = (Get-EnvVar -Name PATHEXT -Global) -replace ';.PYW?', ''",
" Set-EnvVar -Name PATHEXT -Value \"$pathext;.PY;.PYW\" -Global",
"}"
]
},
@ -67,8 +67,8 @@
"uninstaller": {
"script": [
"if ($global) {",
" $pathext = (Get-EnvVar -Name PATHEXT -Global:$true) -replace ';.PYW?', ''",
" Set-EnvVar -Name PATHEXT -Value \"$pathext\" -Global:$true",
" $pathext = (Get-EnvVar -Name PATHEXT -Global) -replace ';.PYW?', ''",
" Set-EnvVar -Name PATHEXT -Value \"$pathext\" -Global",
"}"
]
},