Fix addition of new default associations
This commit is contained in:
parent
e0ed130e58
commit
bdf72fadbf
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue