Fix addition of new default associations

This commit is contained in:
Manuel Thalmann 2023-07-26 15:38:50 +02:00
parent e0ed130e58
commit bdf72fadbf

View file

@ -21,9 +21,10 @@ $null = New-Module {
if ($candidates.Count -eq 1) {
$association = $candidates[0];
} else {
$defaultAssociations = $associations.SelectSingleNode("/DefaultAssociations");
$association = ($associations.SelectNodes([AppAssociations]::associationSelector) | Select-Object -Last 1).CloneNode($true);
$association.Identifier = $identifier;
$association = $associations.AppendChild($association);
$association = $defaultAssociations.AppendChild($association);
}
$association.ProgId = $progId;