Implement the windows installation in a loop

This commit is contained in:
Manuel Thalmann 2024-07-31 16:09:50 +02:00
parent 401aa9e41c
commit afb2d1be65
2 changed files with 51 additions and 22 deletions
scripts/Windows/Scripts

View file

@ -5,6 +5,7 @@ using namespace System.Security.Principal;
$null = New-Module {
[string] $configRoot = "HKLM:\Software\PortValhalla";
[string] $stageOption = "Stage";
[string] $finishedOption = "Finished";
[RegistryKey] $key = $null;
<#
@ -99,4 +100,22 @@ $null = New-Module {
$null = Set-SetupOption $stageOption $Name;
}
<#
.SYNOPSIS
Gets a value indicating whether the setup has finished.
#>
function Get-IsFinished {
return [bool] (Get-SetupOption $finishedOption);
}
<#
.SYNOPSIS
Sets a value indicating whether the setup has finished.
#>
function Set-IsFinished {
param(
$Value
)
}
}