Prevent unnecessary config evaluation

This commit is contained in:
Manuel Thalmann 2024-08-24 01:31:39 +02:00
parent a9daaa9d2b
commit 46a8126298

View file

@ -244,7 +244,7 @@ $null = New-Module {
& $installHandler @argumentList -Action ([InstallerAction]::Configure);
if (-not (Test-SetupUser)) {
if ($UserConfigurator -and (-not (Test-SetupUser))) {
& $installHandler @argumentList -Action ([InstallerAction]::ConfigureUser);
}
# ToDo: Automatically configure after installation