PortValhalla/scripts/Windows/Software/thunderbird/Main.ps1

17 lines
722 B
PowerShell
Raw Normal View History

2024-08-07 16:57:27 +00:00
using namespace Microsoft.Win32;
2024-11-01 12:12:16 +00:00
. "$PSScriptRoot/../../lib/AppAssociations.ps1";
. "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../lib/Software.ps1";
2024-08-07 16:57:27 +00:00
2024-09-30 03:00:20 +00:00
Start-SoftwareInstaller @args `
2024-08-07 16:57:27 +00:00
-Installer {
2024-10-06 19:25:34 +00:00
Install-ChocoPackage thunderbird -ArgumentList "--params", '"/NoTaskbarShortcut /NoDesktopShortcut"';
2024-08-07 16:57:27 +00:00
} `
-Configurator {
Write-Host "Making Thunderbird the default mail program…";
$applicationName = "Thunderbird";
Set-DefaultAppAssociation -Identifier "mailto" -ProgId "Thunderbird.Url.mailto" -ApplicationName $applicationName;
Set-DefaultAppAssociation -Identifier ".eml" -ProgId "ThunderbirdEml" -ApplicationName $applicationName;
};