Add script for installing Thunderbird
This commit is contained in:
parent
88c765b06e
commit
b87117ecd3
2 changed files with 26 additions and 0 deletions
|
@ -187,6 +187,7 @@ $null = New-Module {
|
||||||
if (Test-Collection "common") {
|
if (Test-Collection "common") {
|
||||||
# Common Software
|
# Common Software
|
||||||
. "$softwarePath/WinSCP/Manage.ps1" @arguments;
|
. "$softwarePath/WinSCP/Manage.ps1" @arguments;
|
||||||
|
. "$softwarePath/Thunderbird/Manage.ps1" @arguments;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
25
scripts/Windows/Software/Thunderbird/Manage.ps1
Normal file
25
scripts/Windows/Software/Thunderbird/Manage.ps1
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
using namespace Microsoft.Win32;
|
||||||
|
|
||||||
|
param(
|
||||||
|
$Action,
|
||||||
|
[hashtable] $Arguments
|
||||||
|
)
|
||||||
|
|
||||||
|
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
|
||||||
|
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||||
|
|
||||||
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
|
-Installer {
|
||||||
|
param(
|
||||||
|
[scriptblock] $Installer
|
||||||
|
)
|
||||||
|
|
||||||
|
Install-ChocoPackage thunderbird -ArgumentList "--params",'"/NoTaskbarShortcut /NoDesktopShortcut"'
|
||||||
|
& $Installer -Action ([InstallerAction]::Configure)
|
||||||
|
} `
|
||||||
|
-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;
|
||||||
|
};
|
Loading…
Reference in a new issue