Create proper relative paths by default

This commit is contained in:
Manuel Thalmann 2024-03-21 16:05:55 +01:00
commit b1aa93d420
4 changed files with 4 additions and 4 deletions
scripts/Windows/OS

View file

@ -37,7 +37,7 @@ $newCommand = $installationCommand.ParentNode.AppendChild($installationCommand.C
$newCommand.SelectSingleNode("./ua:CommandLine", $namespace).InnerText = `
"powershell -Command " + `
$(Get-Content "$PSScriptRoot/InitialBoot.ps1") + `
"; pwsh '$env:SETUP_SCRIPT_NAME';";
"; pwsh '$([System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", $env:SETUP_SCRIPT_NAME))';";
$order = [int]$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText;
$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText = $order + 1;