From b63c801566ea549bf633b6d3a2ba16d618eca6b3 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 26 Jul 2023 15:32:33 +0200 Subject: [PATCH] Clone node for new associations --- scripts/Windows/Scripts/AppAssociations.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/AppAssociations.ps1 b/scripts/Windows/Scripts/AppAssociations.ps1 index db66d51b..72f0167f 100644 --- a/scripts/Windows/Scripts/AppAssociations.ps1 +++ b/scripts/Windows/Scripts/AppAssociations.ps1 @@ -21,7 +21,7 @@ $null = New-Module { if ($candidates.Count -eq 1) { $association = $candidates[0]; } else { - $association = ($associations.SelectNodes([AppAssociations]::associationSelector) | Select-Object -Last 1)[0]; + $association = ($associations.SelectNodes([AppAssociations]::associationSelector) | Select-Object -Last 1)[0].CloneNode(); $association.Identifier = $identifier; $association = $associations.AppendChild($association); }