2024-08-07 16:57:27 +00:00
|
|
|
using namespace Microsoft.Win32;
|
|
|
|
|
|
|
|
param(
|
|
|
|
$Action,
|
|
|
|
[hashtable] $Arguments
|
|
|
|
)
|
|
|
|
|
2024-08-08 12:21:55 +00:00
|
|
|
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
|
2024-09-23 01:33:17 +00:00
|
|
|
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
2024-08-07 19:05:32 +00:00
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
2024-08-07 16:57:27 +00:00
|
|
|
|
|
|
|
Start-SoftwareInstaller @PSBoundParameters `
|
|
|
|
-Installer {
|
|
|
|
Install-ChocoPackage thunderbird -ArgumentList "--params",'"/NoTaskbarShortcut /NoDesktopShortcut"'
|
|
|
|
} `
|
|
|
|
-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;
|
|
|
|
};
|