Configure user only outside of setup
This commit is contained in:
parent
1be771628b
commit
875013b104
1 changed files with 2 additions and 2 deletions
|
@ -180,12 +180,12 @@ $null = New-Module {
|
|||
if ($action -eq ([InstallerAction]::Install)) {
|
||||
Write-Host "Installing $Name…";
|
||||
& $Installer @argumentList;
|
||||
# ToDo: Automatically configure after installation
|
||||
} elseif ($Action -eq ([InstallerAction]::Configure)) {
|
||||
Write-Host "Configuring $Name…";
|
||||
& $Configurator @argumentList;
|
||||
|
||||
foreach ($user in Get-Users) {
|
||||
$Arguments.Add($userArgument, $user);
|
||||
if (-not (Test-SetupUser)) {
|
||||
$argumentList.Add("action", [InstallerAction]::ConfigureUser);
|
||||
& $installHandler @argumentList;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue