Prevent unnecessary config evaluation

This commit is contained in:
Manuel Thalmann 2024-08-24 01:31:39 +02:00
parent d0c0c62b0c
commit 24a3c90749

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