Installer:Command Line Arguments: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
The account performing the installation will require administrative privileges to properly complete the installation.
The account performing the installation will require administrative privileges to properly complete the installation.


<tt>&lt;path to setup executable&gt; [/S] | [/D=&lt;<b>full path</b> to installation directory&gt;]</tt><br>
<tt>&lt;path to setup executable&gt; [/S] | [/D=&lt;<b>full path</b> to installation directory&gt;]</tt>
note: /S is broken in Firefox 3.5 through Firefox 3.6 - {{Bug|506867}}<br>
 
note: /S is broken in Firefox 3.5 through Firefox 4.0 - {{Bug|592414}}<br>
notes:
<tt>&lt;path to setup executable&gt; [/INI=&lt;<b>full path</b> to configuration ini file&gt;]</tt><br>
/S is broken in Firefox 3.5 through Firefox 3.6 - {{Bug|506867}}<br>
/D= is broken in Firefox 3.5 through Firefox 4.0 - {{Bug|592414}}
 
<tt>&lt;path to setup executable&gt; [/INI=&lt;<b>full path</b> to configuration ini file&gt;]</tt>
 
<tt>&lt;path to setup executable&gt; [-ms]</tt>
<tt>&lt;path to setup executable&gt; [-ms]</tt>



Revision as of 20:24, 31 August 2010

Please comment in the Talk page (use the Discussion tab above)

IMPORTANT:
DO NOT MIX command line options from different lines below (e.g. don't mix /S with /INI, etc.)
The account performing the installation will require administrative privileges to properly complete the installation.

<path to setup executable> [/S] | [/D=<full path to installation directory>]

notes: /S is broken in Firefox 3.5 through Firefox 3.6 - bug 506867
/D= is broken in Firefox 3.5 through Firefox 4.0 - bug 592414

<path to setup executable> [/INI=<full path to configuration ini file>]

<path to setup executable> [-ms]

Silent install / uninstall:
/S or -ms
-ms
note: -ms is not available when uninstalling Firefox 3.5 / 3.6 so use /S instead when uninstalling - bug 506867

Installation directory:
/D=<full path to install directory>

Configuration ini file:
When specifying a configuration ini file the installer will always run silently. When specifying a Configuration ini file other command line switches should not be specified and may have unexpected results
/INI=<full path to configuration ini file>

Configuration ini file syntax and available settings:

[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