Add newly created nodes

This commit is contained in:
Manuel Thalmann 2023-07-03 12:45:26 +02:00
parent 4fc1a6a2c1
commit 5bb8c52a15

View file

@ -28,6 +28,8 @@ $Global:SetupConfigPostprocessor = {
}
}
$partitionCreations.AppendChild($newPartition);
$partitionModifications = $diskConfig.SelectSingleNode("./ua:ModifyPartitions");
$newModification = $diskConfig.ChildNodes[2].CloneNode($true);
$newModification.SelectSingleNode("./ua:Order").InnerText = "$newIndex";
@ -42,4 +44,6 @@ $Global:SetupConfigPostprocessor = {
$partition.SelectSingleNode("./ua:Order").InnerText = "$($partitionID + 1)";
}
}
$partitionModifications.AppendChild($newModification);
}