From 46a81262987da34f2d72cc7cc29daadb3e5e221a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 24 Aug 2024 01:31:39 +0200 Subject: [PATCH] Prevent unnecessary config evaluation --- scripts/Common/Scripts/Software.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Common/Scripts/Software.ps1 b/scripts/Common/Scripts/Software.ps1 index 420b0bd9..d676c060 100644 --- a/scripts/Common/Scripts/Software.ps1 +++ b/scripts/Common/Scripts/Software.ps1 @@ -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