Configure file explorer only once

This commit is contained in:
Manuel Thalmann 2023-07-16 12:56:54 +02:00
parent ca5913e41b
commit 536001dcff

View file

@ -10,7 +10,11 @@ function Invoke-WindowsInstallation([Context] $context)
Write-Host "Starting Installation and Restoration of Windows";
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
Update-WindowsInstallation $context;
. "$PSScriptRoot/../Config/Explorer/Install.ps1";
if (-not $context.Get("InitialConfiguration")) {
. "$PSScriptRoot/../Config/Explorer/Install.ps1";
$context.Set("InitialConfiguration", 1, "DWord");
}
if (-not $context.Get("SoftwarePrerequisitesInstalled")) {
Write-Host "Installing prerequisites for installing software";