From 585b9e3d55c6b8508fc87384fe543dfc633038c8 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 26 Jul 2023 12:50:35 +0200 Subject: [PATCH] Import the manipulated app associations --- scripts/Windows/Scripts/AppAssociations.ps1 | 5 +++++ 1 file changed, 5 insertions(+) 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; } }