Fix incorrect code

This commit is contained in:
Manuel Thalmann 2023-07-26 18:28:31 +02:00
parent a892256374
commit 023364b4b1

View file

@ -43,7 +43,7 @@ $null = New-Module {
$writerSettings.Indent = $true;
$writerSettings.Encoding = [System.Text.UTF8Encoding]::new();
$writer = [System.Xml.XmlWriter]::Create($configFile.FullName, $writerSettings);
$associations.Save($writer);
$document.Save($writer);
$writer.Dispose();
DISM /Online "/Import-DefaultAppAssociations:$($configFile.FullName)";
Remove-Item $configFile;