Redirect user for configuration properly

This commit is contained in:
Manuel Thalmann 2024-08-10 15:16:00 +02:00
parent ea53352de6
commit 8268fdd29d

View file

@ -253,8 +253,8 @@ $null = New-Module {
& $installHandler @argumentList; & $installHandler @argumentList;
} }
} elseif ($Action -eq ([InstallerAction]::ConfigureUser)) { } elseif ($Action -eq ([InstallerAction]::ConfigureUser)) {
if ((-not $Arguments.ContainsKey($userArgument)) -or ($null -eq $Arguments[$userArgument])) { if ((-not $Arguments.ContainsKey($userArgument)) -or (-not $Arguments[$userArgument])) {
$argumentList.Add($userArgument, ($env:UserName)); $Arguments.Add($userArgument, ($env:UserName));
} }
if ($UserConfigurator) { if ($UserConfigurator) {