Automatically determine the entrypoint during windows install

This commit is contained in:
Manuel Thalmann 2024-03-21 16:07:29 +01:00
parent 2c30f34c06
commit ca863eb749
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 ".." ".." "..");
}