Automatically determine the entrypoint during windows install
This commit is contained in:
parent
b1aa93d420
commit
bfad7f1228
2 changed files with 4 additions and 1 deletions
scripts/Windows
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
function Invoke-WindowsInstallation([Context] $context)
|
function Invoke-WindowsInstallation([Context] $context)
|
||||||
{
|
{
|
||||||
$context.EntryPoint = Get-Entrypoint;
|
|
||||||
$configPath = "$PSScriptRoot/../Config";
|
$configPath = "$PSScriptRoot/../Config";
|
||||||
$softwarePath = "$PSScriptRoot/../Software";
|
$softwarePath = "$PSScriptRoot/../Software";
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,10 @@ class Context {
|
||||||
[string]$RunOnceName = "PortValhalla";
|
[string]$RunOnceName = "PortValhalla";
|
||||||
[string]$StagePropertyName = "Stage";
|
[string]$StagePropertyName = "Stage";
|
||||||
|
|
||||||
|
Context() {
|
||||||
|
$this.EntryPoint = Get-Entrypoint;
|
||||||
|
}
|
||||||
|
|
||||||
[string] ProjectRoot() {
|
[string] ProjectRoot() {
|
||||||
return Resolve-Path (Join-Path $PSScriptRoot ".." ".." "..");
|
return Resolve-Path (Join-Path $PSScriptRoot ".." ".." "..");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue