2024-11-01 12:12:16 +00:00
|
|
|
. "$PSScriptRoot/../../lib/AppAssociations.ps1";
|
|
|
|
. "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
|
|
|
|
. "$PSScriptRoot/../../../lib/Software.ps1";
|
2024-08-07 21:53:12 +00:00
|
|
|
|
2024-09-30 03:00:20 +00:00
|
|
|
Start-SoftwareInstaller @args `
|
2024-10-06 19:25:34 +00:00
|
|
|
-Installer {
|
2024-08-07 21:53:12 +00:00
|
|
|
Install-ChocoPackage firefox;
|
|
|
|
} `
|
|
|
|
-Configurator {
|
|
|
|
Write-Host "Making Firefox the default browser…";
|
|
|
|
$progIdSuffix = "-308046B0AF4A39CB";
|
|
|
|
$appName = "Firefox";
|
|
|
|
|
|
|
|
$extensions = @(
|
|
|
|
".htm",
|
|
|
|
".html",
|
|
|
|
".svg",
|
|
|
|
".xht",
|
|
|
|
".xhtml"
|
|
|
|
);
|
|
|
|
|
|
|
|
$schemes = @(
|
|
|
|
"http",
|
|
|
|
"https"
|
|
|
|
);
|
|
|
|
|
|
|
|
foreach ($extension in $extensions) {
|
2024-08-08 12:08:48 +00:00
|
|
|
Set-DefaultAppAssociation -Identifier $extension -ProgId "${appName}HTML$progIdSuffix" -ApplicationName $appName;
|
2024-08-07 21:53:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
foreach ($scheme in $schemes) {
|
|
|
|
Set-DefaultAppAssociation -Identifier $scheme -ProgId "${appName}URL$progIdSuffix" -ApplicationName $appName;
|
|
|
|
}
|
2024-08-08 00:29:09 +00:00
|
|
|
|
|
|
|
Remove-TaskbarItem "*Firefox*";
|
2024-08-07 21:53:12 +00:00
|
|
|
};
|