Talk:Installer:Command Line Arguments

Add topic
Revision as of 22:34, 24 November 2008 by Harryjohnston (talk | contribs) (Question about lack of error indications)

The installer (3.0.4) does not appear to return any error indication if the installation fails, e.g., if the current account can't write to the installation directory.

options for user installation

Would dearly love to see command-line arguments to set up user installation and default identity items, especially the local-folders area name, username, and password! If that could be done, Thunderbird could be easily pushed to a whole Windows domain :)

--Jonathanbrickman0000 14:07, 15 December 2006 (PST)

Thunderbird itself would need to provide these options since it understands user profiles, etc. and the installer does not. Robert Strong 17:02, 24 June 2008 (PDT)

command line arguments to uninstall firefox 2.0

Can anyone give me some pointers on this?

I need to do a silent uninstallation of firefox through the fir. What script can I run for this?

Thanks LOTS

Can't help you with this, but I have a question about the config.ini file. I have set CloseAppNoPrompt=true, but when updating Fx 2.0.0.1 to version 2.0.0.2, the install does NOT close Fx if "Warn me when I attempt to close multiple tabs" has not been un-checked. Is there another value I could use? (force, always close etc)

  • Regretfully there is no way to do this without killing the process and we are removing that capability from the installer for Firefox 3.0 so it will always prompt. Robert Strong 02:14, 25 August 2007 (PDT)

?? Robert Why would you want to remove a feature that allows for corporate deployment. If you remove this feature, then corporations that have to deploy the update will have to kill the firefox.exe processes themselves.

  • Because there is no way for the installer to do so across user sessions and the installer now supports installing files on OS restart when they are in use Robert Strong 17:02, 24 June 2008 (PDT)

Does that really work?

I tried the /S and -ms options. But the stock Firefox setup.exe's as distributed ignore these? Am I understanding something wrong? What is the secret to get this working?

  • Using Firefox 2.0 this works for me. Robert Strong 02:14, 25 August 2007 (PDT)

Doesn't work at all for now!

The /D and /INI switches don't seem to work at all. I tried the following line in an install.cmd file: "%~dp0Firefox Setup 2.0.0.11.exe" /S /D="D:\Browsers\Firefox" /INI="%~dp0Firefox.ini"

The /S switch seemed to work: it was silent. However, FF installed into it's default directory on C:\, not into D:\Browsers\Firefox. That path was also specified in the .ini file.

The page says that if /INI is specified, the installer always runs in silent mode. This was not the case. I had to add /S. Rduke15 03:25, 9 January 2008 (PST)

more on /D not working...

things seem to work ok for me on windowns xp using the options

 firefox-installer.exe /S /D \path_to_install_directory

(note no equal sign as in /D=\path... or the way it is show in some of the documentation)


After many attempts on Vista I can't seem to get the /D option to work. It just installs to c:\Program Files\Mozilla Firefox... or what ever the default setting is. I tried to make sure every path permission, security & sharing settings were opened up for the max flexibility but that didn't seem to help.

INI file question?

Do I remove the ; at the begining of the line with the switch to make it work and leave it to not enable the switch?

Thanks in advance.

S


/INI switch requires full path

The following command doesn't work

"Firefox Setup 3.0.1.exe" /S /INI=MyConfig.ini

The reason this doesn't work is because the "Firefox Setup 3.0.1.exe" extracts to the temp file. Then the extracted setup.exe looks for the MyConfig.ini in the directory that setup.exe is in.

For deployment in corporate environments, the full path is not always going to be known. Most installers do not require a full path if the configuration file is in the same directory as the installer file. The Firefox Setup 3.0.1.exe setup does not work this way. I would recommend fixing the next installer so that if no path is given, the path that Firefox Setup 3.0.1.exe was launched from is added to the front before passing to the setup.exe that runs from the temp directory.


Solution

You can get around this problem with a simple batch file, here's mine as an example:
echo [Install] > ffsetup.ini
echo InstallDirectoryPath=%ProgramFiles(x86)%\Net Progs\Firefox\ >> ffsetup.ini
echo DesktopShortcut=false >> ffsetup.ini
echo StartMenuDirectoryName=Net Progs\Mozilla Firefox >> ffsetup.ini
setup /INI="%CD%\ffsetup.ini"

For those having difficulty getting command line switches to work, please bear in mind that the .exe you downloaded from Mozilla is a self extracting archive that calls another file, setup.exe, which is stored inside. I'm not sure what, if any, switches work with the original self extracting archive, but to use the /INI= switch requires that you uncompress the archive [e.g. with 7-zip], & use the switch on the setup.exe file that was inside the Firefox Setup <version>.exe. Alien 07:13, 25 September 2008 (UTC)

What options are available in the ini file when installing using the /INI option?

I've read the wiki for command line arguments (http://wiki.mozilla.org/Installer:Command_Line_Arguments) however ther problem I'm running into is that I don't want the FireFox to be the default browser. The documentation, aside from the aforementioned link is lacking, at best. The ability to do unattended installs is paramount for me and while I'd like to give my users a choice of browsers I don't want this overwriting a machine's default browser setting.

Thanks in advance,

Jim

Return to "Installer:Command Line Arguments" page.