Jump to content

Firefox and Thunderbird (Beta) Unattended Installer switches


darks0ul

Recommended Posts

Hi,

I explored mozilla's source code to find out how the installer works. I eventually came across the NSIS source file for Thunderbird and the function .onInit can read a INI file with the unattended parameters. So here's mine:

[Install]
InstallDirectoryName="Internet\Mozilla Thunderbird"
QuickLaunchShortcut=false
DesktopShortcut=true
StartMenuShortcuts=true
StartMenuDirectoryName="Internet\Mozilla Thunderbird"

; More info here:
; http://lxr.mozilla.org/mozilla/source/mail/installer/windows/nsis/installer.nsi#986

Launch it using:

"Thunderbird Setup 2.0 Beta 1"  /INI="C:\setups\thunderbird\config.ini"

Please note that the full path to the ini file must be passed. I use an auto-it script which looks like this:

$Version = "2.0 Beta 1"
$Setup = "Thunderbird Setup" & " " & $Version & ".exe"
$ConfigFile = "config.ini"
RunWait($setup & ' ' & '/INI="' & @ScriptDir & "\" & $ConfigFile & '"', @ScriptDir)

This works for Firefox 2.0 and Thunderbird 2.0 Beta 1 (and newer).

The Installer source code:

Firefox

Thunderbird

You do not need to use the old -ms switch (it's deprecated and it won't work with the INI file), when the installer loads the INI file, it enters silent mode.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...