An "unattended", aka "silent" install can be performed on Firefox 3.6. Instructions on performing a silent install can be found at Installer: Command Line Arguments.
You can use the -ms option with the setup file, though
this is listed as being a deprecated option. However, the alternative
option, /S, for a silent install is listed as being broken
currently [This is as of February 14, 2010]. Or you can use the option
/INI=<full path to configuration ini file>. You
can't mix the /S or -ms options with the
/INI file. If you place the /INI option after
one of those options, the /INI option
will be ignored and there's really no need to do so, since a silent installation
will be performed when you specify the /INI option.
Configuration ini file, e.g. firefox.ini syntax:
[Install] ; The name of the directory where the application will be installed in the ; system's program files directory. The security ; context the installer is running in must have write access to the ; installation directory. Also, the directory must not exist or if it exists ; it must be a directory and not a file. If any of these conditions are not met ; the installer will abort the installation with an error level of 2. If this ; value is specified then InstallDirectoryPath will be ignored. ; InstallDirectoryName=Mozilla Firefox ; The full path to the directory to install the application. The security ; context the installer is running in must have write access to the ; installation directory. Also, the directory must not exist or if it exists ; it must be a directory and not a file. If any of these conditions are not met ; the installer will abort the installation with an error level of 2. ; InstallDirectoryPath=c:\firefox\ ; By default all of the following shortcuts are created. To prevent the ; creation of a shortcut specify false for the shortcut you don't want created. ; ; Create a shortcut for the application in the current user's QuickLaunch ; directory. ; QuickLaunchShortcut=false ; ; Create a shortcut for the application on the desktop. This will create the ; shortcut in the All Users Desktop directory and if that fails this will ; attempt to create the shortcuts in the current user's Start Menu directory. ; DesktopShortcut=false ; ; Create shortcuts for the application in the Start Menu. This will create the ; shortcuts in the All Users Start Menu directory and if that fails this will ; attempt to create the shortcuts in the current user's Start Menu directory. ; StartMenuShortcuts=false ; The directory name to use for the StartMenu folder. ; note: if StartMenuShortcuts=false is specified then this will be ignored. ; StartMenuDirectoryName=Mozilla Firefox
If you want to spcify the directory where Firefox should be installed,
rather than having it go into the default location, e.g.
C:\Program Files\Mozilla Firefox, leave the semicolon
in front of InstallDirectoryName="Mozilla Firefox" to keep it
commented out. But remove the semicolon from the InstallDirectoryPath
option. E.g., if I wanted to specify
C:\Program Files\Network\Web\Firefox as the installation directory,
I could put the following in that line:
InstallDirectoryPath=c:\Program Files\Network\Web\Mozilla Firefox
I normally don't want the desktop cluttered with shortcuts, so I would
remove the semicolon from in front of DesktopShortcut=false to
keep a shortcut for Firefox being added to the desktop.
By default, a start menu entry will be made named
Mozilla Firefox, but, if I instead wanted the start menu entry
to go under Network
Web\Mozilla Firefox, I could use
StartMenuDirectoryName=Network\Web\Mozilla Firefox for the
StartMenuDirectoryName option.
To perform an unattended install using
WPKG, I could use the following for a firefox.xml package file:
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
id="Firefox"
name="Mozilla Firefox 3.6"
revision="3600"
reboot="false"
priority="30">
<check type="uninstall" condition="exists" path="Mozilla Firefox (3.6)" />
<install cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
<exit code="128" />
<exit code="-1073741515" />
</install>
<install cmd='"%SOFTWARE%\network\web\Firefox Setup 3.6.exe" /ini=%SOFTWARE%\network\web\firefox.ini' />
<upgrade cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
<exit code="128" />
<exit code="-1073741515" />
</upgrade>
<upgrade cmd='"%SOFTWARE%\network\web\Firefox Setup 3.6.exe" /ini=%SOFTWARE%\network\web\firefox.ini' />
<remove cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
<exit code="128" />
<exit code="-1073741515" />
</remove>
<remove cmd='"%PROGRAMFILES%\Network\Web\Mozilla Firefox\uninstall\helper.exe" /s' />
</package>
</packages>
References:
