Prevent unnecessary config evaluation

This commit is contained in:
Manuel Thalmann 2024-08-24 01:31:39 +02:00
parent 66d2cd88f9
commit 57fd3e32ed

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