diff --git a/scripts/Windows/Scripts/AppAssociations.ps1 b/scripts/Windows/Scripts/AppAssociations.ps1 index 4c06cdb9..dee6a7e6 100644 --- a/scripts/Windows/Scripts/AppAssociations.ps1 +++ b/scripts/Windows/Scripts/AppAssociations.ps1 @@ -28,6 +28,11 @@ New-Module { $association.ProgId = $progId; $association.ApplicationName = $applicationName; + + $configFile = New-TemporaryFile; + $associations.Save($configFile.FullName); + DISM /Online "/Import-DefaultAppAssociations:$($configFile.FullName)"; + Remove-Item $configFile; } }