Fix order of execution in setup script

This commit is contained in:
Manuel Thalmann 2024-03-11 18:10:37 +01:00
parent e6d2a3189d
commit 20acebbc7e

View file

@ -40,7 +40,7 @@ $newCommand.SelectSingleNode("./ua:CommandLine", $namespace).InnerText = `
"; pwsh '$env:SETUP_SCRIPT_NAME';"; "; pwsh '$env:SETUP_SCRIPT_NAME';";
$order = [int]$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText; $order = [int]$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText;
$newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText = $order++; $newCommand.SelectSingleNode("./ua:Order", $namespace).InnerText = $order + 1;
$newCommand.SelectSingleNode("./ua:Description", $namespace).InnerText = "Install PowerShell Core and git and run setup script"; $newCommand.SelectSingleNode("./ua:Description", $namespace).InnerText = "Install PowerShell Core and git and run setup script";
if ($Global:SetupConfigPostprocessor) { if ($Global:SetupConfigPostprocessor) {