mirror of
https://github.com/rancher-sandbox/rancher-desktop.git
synced 2021-10-13 00:04:06 +03:00
Merge pull request #296 from mook-as/win-installer-path-repeated
NSIS: Add extra nested `resources` to PATH
This commit is contained in:
@@ -4,7 +4,7 @@ param($InstallDir)
|
||||
|
||||
$TargetUser = [System.EnvironmentVariableTarget]::User
|
||||
$path = [System.Environment]::GetEnvironmentVariable('PATH', $TargetUser) -split ';'
|
||||
$desiredPath = Join-Path $InstallDir 'resources\win32\bin'
|
||||
$desiredPath = Join-Path $InstallDir 'resources\resources\win32\bin'
|
||||
if ($path -notcontains $desiredPath) {
|
||||
$path += $desiredPath
|
||||
[System.Environment]::SetEnvironmentVariable('PATH', ($path -join ';'), $TargetUser)
|
||||
|
||||
Reference in New Issue
Block a user