Import the manipulated app associations
This commit is contained in:
parent
3b420f42d4
commit
585b9e3d55
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue