Configure file explorer only once
This commit is contained in:
parent
ca5913e41b
commit
536001dcff
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,11 @@ function Invoke-WindowsInstallation([Context] $context)
|
||||||
Write-Host "Starting Installation and Restoration of Windows";
|
Write-Host "Starting Installation and Restoration of Windows";
|
||||||
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
|
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
|
||||||
Update-WindowsInstallation $context;
|
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")) {
|
if (-not $context.Get("SoftwarePrerequisitesInstalled")) {
|
||||||
Write-Host "Installing prerequisites for installing software";
|
Write-Host "Installing prerequisites for installing software";
|
||||||
|
|
Loading…
Reference in a new issue