From bdf72fadbfbbe68a31ff2119a7f7a5de3e3f8071 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 26 Jul 2023 15:38:50 +0200 Subject: [PATCH] Fix addition of new default associations --- scripts/Windows/Scripts/AppAssociations.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/AppAssociations.ps1 b/scripts/Windows/Scripts/AppAssociations.ps1 index 2eac3426..ac6d16ec 100644 --- a/scripts/Windows/Scripts/AppAssociations.ps1 +++ b/scripts/Windows/Scripts/AppAssociations.ps1 @@ -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;