$RegistryPath1 = 'HKCU:\Software\Policies\Microsoft\Windows\Installer'
$RegistryPath2 = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
$Name = 'AlwaysInstallElevated'
$Value = '1'
New-Item -Path $RegistryPath1 -Force | Out-Null
New-Item -Path $RegistryPath2 -Force | Out-Null
New-ItemProperty -Path $RegistryPath1 -Name $Name -Value $Value -PropertyType DWORD -Force
New-ItemProperty -Path $RegistryPath2 -Name $Name -Value $Value -PropertyType DWORD -Force
le tool crash avec python 3.9+ car la méthode thread.isAlive() a été silent retired. du coup faut backtrack sur thread.is_alive():
Quickfix:
alias rgi="ripgrep -i"
for file in $(rgi isAlive | less | cut -d ":" -f1 | sort -u); do sed -i 's/isAlive/is_alive/g' $file ; done