From 541e523f5c5691ecd3aa3d898f50abf04de70d5b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 20 Jul 2023 20:19:35 +0200 Subject: [PATCH] Try fixing the default browser association --- scripts/Windows/Software/Firefox/Install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Software/Firefox/Install.ps1 b/scripts/Windows/Software/Firefox/Install.ps1 index 987cd9f57..1c1ad563a 100644 --- a/scripts/Windows/Software/Firefox/Install.ps1 +++ b/scripts/Windows/Software/Firefox/Install.ps1 @@ -5,14 +5,14 @@ function Install-Firefox { param([Context] $context) $tempDir = $context.GetTempDirectory(); - $configFile = "DefaultAssociations.xml"; Push-Location $tempDir; + $configFile = "$tempDir/DefaultAssociations.xml"; Write-Host "Installing Firefox"; choco install -y firefox; Write-Information "Making Firefox the default browser"; - DISM /Online "/Export-DefaultAppAssociations:DefaultAssociations.xml"; + DISM /Online "/Export-DefaultAppAssociations:$configFile"; [xml]$defaultAssociations = [xml]::new(); $defaultAssociations.PreserveWhitespace = $true;