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); }