Installer:Command Line Arguments: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Add a link to the in-tree documentation, since it's now canonical.)
(Remove all content and have people go elsewhere.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''PLEASE NOTE:'''<br>
This documentation has moved to https://firefox-source-docs.mozilla.org/browser/installer/windows/installer/FullConfig.html.
This page has been superseded by the [https://firefox-source-docs.mozilla.org/browser/installer/windows/installer/FullConfig.html Firefox source tree documentation]. The content that was already here has been left up for convenience, but the above link is now the authoritative, up-to-date documentation.
 
 
 
 
''Please comment in the Talk page (use the Discussion tab above)''
 
<b>IMPORTANT:</b><br>
DO NOT MIX command line options from different lines below (e.g. don't mix /S with /INI, etc.)<br>
The account performing the installation will require administrative privileges to properly complete the installation.<br>
This page applies only to the full installer and not the stub installer. If you want to perform a silent install you cannot do so with the stub installer and you must use the full installer. Full installers for Firefox can be found at http://www.mozilla.org/firefox/all/ (or for Firefox [http://www.mozilla.org/firefox/organizations/ ESR] at http://www.mozilla.org/firefox/organizations/all/ ).
 
Silent install (always installs into the default location. Use the "Configuration ini file" option below to set the install location and other install options):<br>
<tt>&lt;path to setup executable&gt; -ms</tt>
 
Silent uninstall:<br>
<tt>&lt;path to setup executable&gt; /S</tt>
 
Configuration ini file:<br>
<tt>&lt;path to setup executable&gt; [/INI=&lt;<b>full path</b> to configuration ini file&gt;]</tt>
 
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
 
Configuration ini file syntax and available settings:
<pre>[Install]
;
; Remove the semicolon (;) to un-comment a line.
;
; 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 taskbar.
; TaskbarShortcut=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 (not available with
; Firefox 4.0 and above - see note below).
; note: if StartMenuShortcuts=false is specified then this will be ignored.
; StartMenuDirectoryName=Mozilla Firefox
 
; The MozillaMaintenance service is used for silent updates and may be used
; for other maintenance related tasks.  It is an optional component.
; This option can be used in Firefox 16 or later to skip installing the service.
; MaintenanceService=false
 
; Starts with Firefox 60, it's possible to mark all or some of the extensions
; bundled within a partner distribution as optional.
; Set this option to false to opt-out installtion of any optional extensions.
; OptionalExtensions=false</pre>
 
As of Firefox 4.0 StartMenuDirectoryName is ignored due to the removal of the start menu directory for Firefox and the creation of a start menu shortcut in the root of the start menu (see {{bug|598779}}).

Latest revision as of 16:55, 27 August 2020