2023-06-16 18:24:22 +00:00
|
|
|
. "$PSScriptRoot/Manage.ps1";
|
2023-06-22 15:06:45 +00:00
|
|
|
. "$PSScriptRoot/Upgrade.ps1";
|
2023-06-22 15:53:12 +00:00
|
|
|
. "$PSScriptRoot/../Scripts/Context.ps1";
|
2023-06-16 18:24:22 +00:00
|
|
|
|
2023-06-21 20:04:18 +00:00
|
|
|
function Invoke-WindowsInstallation([Context] $context)
|
|
|
|
{
|
2023-06-22 15:32:36 +00:00
|
|
|
Write-Host "Starting Installation and Restoration of Windows";
|
2023-06-21 20:04:18 +00:00
|
|
|
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
|
|
|
|
Invoke-Upgrade $context;
|
|
|
|
Invoke-WindowsRestore $context;
|
|
|
|
}
|