Add newly created nodes

This commit is contained in:
Manuel Thalmann 2023-07-03 12:45:26 +02:00
parent 43f6e2e44a
commit 6f7a44ed23

View file

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