diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 2422078c..4425d1b3 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -6,6 +6,7 @@ class Context { [string]$AdminName = "Admin"; [string]$ConfigRoot = "HKLM:\Software\PortValhalla"; [string]$RunOnceName = "PortValhalla"; + [string]$StagePropertyName = "Stage"; [string] ProjectRoot() { return Resolve-Path (Join-Path $PSScriptRoot ".." ".." ".."); @@ -44,6 +45,14 @@ class Context { } } + [void] SetStage([string] $name) { + $this.Set($this.StagePropertyName, $name, "ExpandString"); + } + + [string] GetStage() { + return $this.Get($this.StagePropertyName); + } + [string] ArchivePath($name) { return Join-Path $this.BackupRoot() "$name.7z"; }