Talk:Installer:Command Line Arguments: Difference between revisions

 
(21 intermediate revisions by 7 users not shown)
Line 1: Line 1:
== Valid information? (for Firefox 3.5)==
== Valid information? (for Firefox 3.5)==
Is the information in this page still valid?  
Is the information in this page still valid?  
Line 70: Line 69:
* Yes [[User:Robert_Strong|Robert Strong]] 17:02, 24 June 2008 (PDT)
* Yes [[User:Robert_Strong|Robert Strong]] 17:02, 24 June 2008 (PDT)


* I had the same question so I took the liberty of adding this info to the example .ini file. [[User:Itismike|Itismike]] 06:35, 4 March 2011 (PST)
Is there a way to force the installer to use automatically a particular ini ? E.g. by giving a default name to it ? Many .exe call automatically the .ini or .profile having their name.


== /INI switch requires full path ==
== /INI switch requires full path ==
Line 103: Line 105:
1:33 PM MST 12/17/2008
1:33 PM MST 12/17/2008


  -- This was due to {{Bug|440704}} and was fixed as of Firefox 3.0.2 [[User:Robert Strong|Robert Strong]] 07:27, 28 July 2009 (UTC)
This was due to {{Bug|440704}} and was fixed as of Firefox 3.0.2 [[User:Robert Strong|Robert Strong]] 07:27, 28 July 2009 (UTC)


== The DesktopShortcut=false option in the INI does not work when Firefox is running ===  
== The DesktopShortcut=false option in the INI does not work when Firefox is running ===  
Line 131: Line 133:
I have noticed that my script to deploy Firefox with the /S switch is still opening the install wizard. I have found that the -ms switch still works, but is considered depreciated. Any suggestions?
I have noticed that my script to deploy Firefox with the /S switch is still opening the install wizard. I have found that the -ms switch still works, but is considered depreciated. Any suggestions?


If you use the INI option it will automatically install in silent mode as long as the file exists and can be read by the account running the install. It is also necessary for the account to have administrative privileges. [[User:Robert Strong|Robert Strong]] 07:24, 28 July 2009 (UTC)
If you use the INI option it will automatically install in silent mode as long as the file exists and can be read by the account running the install. It is also necessary for the account to have administrative privileges. Filed {{Bug|506867}} [[User:Robert Strong|Robert Strong]] 07:24, 28 July 2009 (UTC)


== /D switch working with 3.5 installer running XP32 & XP64 ==
== /D switch working with 3.5 installer running XP32 & XP64 ==
Line 138: Line 140:


  for %i in ("C:\black & white") do "Firefox Setup 3.5.exe" -ms /D=%~i
  for %i in ("C:\black & white") do "Firefox Setup 3.5.exe" -ms /D=%~i
== Help > About > Version number doesn't change ==
When I update with the command line, specifying an ini file, the install goes ok - silent and lovely, but it doesn't update the Firefox version number in About.
As of now the latest version is Firefox 3.6. 
I take a machine that has 3.5 installed.  I run the installer & it seems to work.  Now, I launch Firefox & go to Help > About.  The version number still says 3.5.  The user string shown on the same window says:
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)" 
Also, if I do Help > Check for updates, then Firefox returns that it is up to date. 
I the same results on Firefox 3.0.18 - everything went well, but the help about page shows the version unchanged, at 3.0.18, yet the user-agent and everything else shows the browser to be at 3.6.
----
If the silent install did in fact complete successfully then this would be caused by something outside of the installer. You can try running the installer without it being silent to see if it updated the version properly and if it did then the silent install likely didn't complete successfully. If it doesn't then it is likely a pref in your profile overriding the value displayed. Before you hunt down the pref you can verify this is the case by running with a new profile and checking the version value. : [[User:Robert Strong|Robert Strong]] 21:00, 4 March 2010 (UTC)
----
I created a new blank profile, and the setting remains the same.  Everything says that it's Firefox 3.6, except the Help > About screen.
* User agent string is 3.6
* HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox: Key 'CurrentVersion' shows 3.6
* Help > Update, shows no new updates available
When I run a normal install of 3.6, it all goes ok, and yet the behaviour of the Help > About remains resolutely incorrect.  I've replicated this on several machines running various versions of Firefox (hence my desire to script-force an update :) )
I'm installing it with a batch file:
"\\server\Software\Firefox\Firefox Setup 3.6\setup.exe" /INI="\\server\Software\Firefox\Firefox Setup 3.6\config.ini"
Using the config.ini file:
[Install]
QuickLaunchShortcut=false
DesktopShortcut=false
Uploaded image imgur.com/aFMIl.png to show what I'm talking about.
I'd be grateful to see if anyone can replicate this...?
----
The installer literally just copies files so it has nothing to do with this problem and if it is successfully completing then it isn't due to the old version being present. I suggest you take the problem to either the <a href="http://support.mozilla.com/">support forums</a> or <a href="http://forums.mozillazine.org/">mozillazine</a>. : [[User:Robert Strong|Robert Strong]] 00:05, 5 March 2010 (UTC)
== Definitive Install Command List ==
Can anoyone out there (at Mozilla I hope) let the good people know all the configuration ini commands
so far I have these:
InstallDirectoryName="Name" <br>InstallDirectoryPath="Path" <br>QuickLaunchShortcut=true/false <br>DesktopShortcut=true/false <br>StartMenuShortcuts=true/false <br>StartMenuDirectoryName="Name" <br>CloseAppNoPrompt=true/false <br><s>EnableProfileMigrator=true/false</s> <br>
EnableProfileMigrator is not managed by the installer. The available settings for the ini file are listed under the 'Configuration ini file syntax' on the page. I'll make a note on the page that they are the values that are available. : [[User:Robert Strong|Robert Strong]] 01:25, 29 March 2010 (UTC)
== Video Example of deploying Mozilla Firefox ==
Using the /INI command line argument (described above) I've been able to silently deploy Firefox to windows computers. Here is a video showing how to do a deployment. [http://www.youtube.com/watch?v=ODWsJ_i279Q&hd=1 Deploy Firefox]
It's important to remember that the /INI argument expects the full path (relative paths will not work). I keep my Firefox.ini file on an accessible network share.
== /S Switch definitely does not work on 3.6.13 ==
I will admit to a little frustration with the information on the preceding page. Its bad enough there isn't an MSI installer to assist with the bulk group policy deployment of Firefox to a Windows domain, but to have out-of date information on the command line installation switches for uninstallation of old versions and no explanation that newer versions overwrite the older versions made it a very challenging day.
For those who follow that want to do a domain installation, the contents of the script written are included, this was saved in a Computer-based startup script GPO and applied to the necessary computer OU. It does drop a file (firefox3.6.13installed.txt) on the c: drive with the time and date of installation to prevent installation every time the PC starts, change the path to suit if required...
<pre>
if exist "c:\firefox3.6.13installed.txt" goto end
REM uninstall all earlier versions
REM \\server\programs\Firefox\Firefox_Setup_3.6.13.exe /S
REM Ba-bow... that don't work...
REM install latest version silently and with default options
\\server\programs\Firefox\Firefox_Setup_3.6.13.exe -ms
:writemarkerfile
echo %date% >> "c:\firefox3.6.13installed.txt"
echo %time% >> "c:\firefox3.6.13installed.txt"
:end
</pre>
== Confusing directions: Don't mix commands / Mix these commands? ==
What is meant by:
IMPORTANT:
DO NOT MIX command line options from different lines below (e.g. don't mix /S with /INI, etc.)
Then the next instruction says:
Silent install (always installs into the default location. Use the "Configuration ini file" option below to set the install location and other install options)
To me, this is contradictory. Wouldn't I need the silent switch in conjunction with the /INI switch?
FirefoxSetup.exe -ms /INI=config.ini
[[User:Itismike|Itismike]] 06:35, 4 March 2011 (PST)
== Firefox /INI command-line switch does not allow spaces in folder paths. ==
Firefox 27
Windows 7
Using /INI switch to try and use the Installer path values.
I found that the folder name value or folder path value will not work if there are spaces in either.
When you try to do so the installer fails silently with errorlevel 0
If spaces are removed the install works and installs to the folder or path specified.
this happens even if you put single quotes or double quotes around the string.  This should be fixed.
1

edit