PortValhalla/scripts/Windows/OS/Install.ps1

12 lines
348 B
PowerShell
Raw Normal View History

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;
}