Automatically determine the entrypoint during windows install

This commit is contained in:
Manuel Thalmann 2024-03-21 16:07:29 +01:00
parent b1aa93d420
commit bfad7f1228
2 changed files with 4 additions and 1 deletions

View file

@ -8,7 +8,6 @@
function Invoke-WindowsInstallation([Context] $context)
{
$context.EntryPoint = Get-Entrypoint;
$configPath = "$PSScriptRoot/../Config";
$softwarePath = "$PSScriptRoot/../Software";

View file

@ -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 ".." ".." "..");
}