Fix incorrect command

This commit is contained in:
Manuel Thalmann 2023-07-20 20:18:12 +02:00
parent 1affbba496
commit 7fcd6303d7

View file

@ -5,7 +5,7 @@ function Install-Firefox {
param([Context] $context) param([Context] $context)
$tempDir = $context.GetTempDirectory(); $tempDir = $context.GetTempDirectory();
$configFile = "$tempDir/DefaultAssociations.xml"; $configFile = "DefaultAssociations.xml";
Push-Location $tempDir; Push-Location $tempDir;
Write-Host "Installing Firefox"; Write-Host "Installing Firefox";
@ -16,7 +16,7 @@ function Install-Firefox {
[xml]$defaultAssociations = [xml]::new(); [xml]$defaultAssociations = [xml]::new();
$defaultAssociations.PreserveWhitespace = $true; $defaultAssociations.PreserveWhitespace = $true;
$reader = [System.Xml.XmlReader]::Create("$drive\Autounattend.template.xml", $readerSettings); $reader = [System.Xml.XmlReader]::Create("$configFile", $readerSettings);
$defaultAssociations.Load($reader); $defaultAssociations.Load($reader);
$extensions = @( $extensions = @(