PortValhalla/scripts/Windows/Config/Firefox/Install.ps1

30 lines
569 B
PowerShell
Raw Normal View History

#!/bin/pwsh
2023-07-26 10:55:52 +00:00
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
2023-07-26 15:07:19 +00:00
Write-Host "Configuring Firefox";
2023-07-26 10:55:52 +00:00
$progIdSuffix = "-308046B0AF4A39CB";
$appName = "Firefox";
$extensions = @(
".htm",
".html",
".svg",
".xht",
".xhtml"
);
$schemes = @(
"http",
"https"
);
2023-07-26 15:07:19 +00:00
Write-Information "Making Firefox the default browser";
2023-07-26 10:55:52 +00:00
foreach ($extension in $extensions) {
Set-DefaultAppAssociation $extension "FirefoxHTML$progIdSuffix" $appName;
}
2023-07-26 10:55:52 +00:00
foreach ($scheme in $schemes) {
Set-DefaultAppAssociation $scheme "FirefoxURL$progIdSuffix" $appName;
}