diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 85784462..a95f5a07 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -8,7 +8,6 @@ function Invoke-WindowsInstallation([Context] $context) { - $context.EntryPoint = Get-Entrypoint; $configPath = "$PSScriptRoot/../Config"; $softwarePath = "$PSScriptRoot/../Software"; diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 9056e303..f950c19d 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -11,6 +11,10 @@ class Context { [string]$RunOnceName = "PortValhalla"; [string]$StagePropertyName = "Stage"; + Context() { + $this.EntryPoint = Get-Entrypoint; + } + [string] ProjectRoot() { return Resolve-Path (Join-Path $PSScriptRoot ".." ".." ".."); }