Skip to content

Commit

Permalink
fix issues related to powershell commands and regedit
Browse files Browse the repository at this point in the history
  • Loading branch information
billhong-just authored and manuelbuil committed Mar 12, 2024
1 parent a51fceb commit eb87e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -639,11 +639,11 @@ csi-proxy:

$newEnv += $PROXY_ENV_INFO
if(Test-Path -Path HKLM:SYSTEM\CurrentControlSet\Services\$serviceName) {
Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\$serviceName -Name Environment -Value $([string]$newEnv)
Set-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\$serviceName -Name Environment -Value $newEnv
}
else {
New-Item HKLM:SYSTEM\CurrentControlSet\Services\$serviceName
New-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\$serviceName -Name Environment -PropertyType MultiString -Value $([string]$newEnv)
New-ItemProperty HKLM:SYSTEM\CurrentControlSet\Services\$serviceName -Name Environment -PropertyType MultiString -Value $newEnv
}
}

Expand Down

0 comments on commit eb87e11

Please sign in to comment.