Fix broken regedit paths
This commit is contained in:
parent
141b8290da
commit
8a59b54295
|
@ -26,7 +26,7 @@ $null = New-Module {
|
||||||
[string] $path = $null;
|
[string] $path = $null;
|
||||||
|
|
||||||
if ($UserKey) {
|
if ($UserKey) {
|
||||||
$path = "$($UserKey.PSPath)\$runOncePath";
|
$path = Join-Path ($UserKey.PSPath) $runOncePath;
|
||||||
} else {
|
} else {
|
||||||
$path = $systemRunOncePath;
|
$path = $systemRunOncePath;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue