Help - Search - Members - Calendar
Full Version: Firefox 3.0.1 advanced inf install
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Acheron
I didn't see anything about Firefox for the last couple of weeks, so I start a new thread for this wonderful browser.

The settings specified in firefox.cfg will be loaded as default settings. I show you mine, but you can store any firefox setting in this file and it will be the default setting.

The unattended method described below also works with Firefox 2.0.

In the script dir I have the following folders:

Defaults, contains files copied to the Profile directory (bookmarks file for example is places.sqlite)
Components, contains XPCOM components (xpt extension)
Addons, contains addons (xpi extension)
Plugins, contains any plugins (WMP firefox plugin)
Themes, contains any theme file (jar extension)

Install.inf
CODE
[Version]
Signature="$Windows NT$"

[DefaultInstall]
RunPreSetupCommands  = Firefox.Install:1
RunPostSetupCommands = Firefox.Config:1
CopyFiles            = Firefox.CopyFiles,GrePrefs.CopyFiles
AddReg               = Firefox.AddReg
UpdateInis           = SkipIEMigration

[DestinationDirs]
;Firefox install dir
Firefox.CopyFiles = 16422,"Mozilla Firefox"
GrePrefs.CopyFiles = 16422,"Mozilla Firefox\greprefs"

[Firefox.CopyFiles]
;General config file
"firefox.cfg"

[GrePrefs.CopyFiles]
;Enable general config file
"_config.js"

[Firefox.Install]
;Mozilla Firefox 3.0.1
"""%01%\Firefox301nl.exe"" /S"
;Adobe Flash Player 9.0.124.0 plugin
"msiexec /i ""%01%\flashplayer90124_other.msi"" /qn ALLUSERS=1"

[Firefox.Config]
;Create download folder in My documents
"cmd /c md ""%16389%\Downloads"""
;Copy default profile folder
"xcopy /e /y ""%01%\Defaults"" ""%16422%\Mozilla Firefox\defaults\profile"""
;Copy components
"cmd /c copy /y ""%01%\Components"" ""%16422%\Mozilla Firefox\Components"""
;Copy plugins
"cmd /c copy /y ""%01%\Plugins"" ""%16422%\Mozilla Firefox\Plugins"""
;Install addons
"cmd /c for %%%%e in (""%01%\Addons\*.xpi"") do ""%16422%\Mozilla Firefox\firefox.exe"" -install-global-extension ""%%%%e"""
;Install themes
"cmd /c for %%%%e in (""%01%\Themes\*.jar"") do ""%16422%\Mozilla Firefox\firefox.exe"" -install-global-theme ""%%%%e"""
;Set Firefox as default browser
"""%16422%\Mozilla Firefox\firefox.exe"" -silent -setDefaultBrowser"

[Firefox.AddReg]
;Add Environment variable to Personal folder
HKCU,"Environment","Personal",0x00020000,"%U_SHELL_FOLDERS_PERSONAL%"

[SkipIEMigration]
"%16422%\Mozilla Firefox\override.ini","XRE",,"EnableProfileMigrator=false"

[Strings]
U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\My Documents"


_config.js
CODE
pref("general.config.obscure_value", 0);
pref("general.config.filename", "firefox.cfg");


firefox.cfg
CODE
//general settings
defaultPref("general.smoothScroll", true);
defaultPref("general.warnOnAboutConfig", false);

//set default download directory
var download_dir = getenv("PERSONAL") + "\\Downloads";
defaultPref("browser.download.defaultFolder", download_dir);
defaultPref("browser.download.dir", download_dir);
defaultPref("browser.download.downloadDir", download_dir);
defaultPref("browser.download.folderList", 2);

//hide welcome message
defaultPref("browser.startup.homepage_override.mstone", "rv:1.9.0.1");

//don't notify about installed extensions
defaultPref("extensions.update.notifyUser", false);

//use classic skin
defaultPref("general.skins.selectedSkin", "Firefox3DefaultVista");

//adblock plus
defaultPref("extensions.adblockplus.checkedadblockinstalled", true);
defaultPref("extensions.adblockplus.checkedtoolbar", true);
defaultPref("extensions.adblockplus.showinstatusbar", true);
defaultPref("extensions.adblockplus.showintoolbar", false);
defaultPref("extensions.adblockplus.showsubscriptions", false);

//download statusbar
defaultPref("browser.download.manager.alertOnEXEOpen", false);
defaultPref("browser.download.manager.showAlertOnComplete", false);
defaultPref("browser.download.manager.showWhenStarting", false);
defaultPref("downbar.function.donateTextInterval", "1214154639539");
defaultPref("downbar.function.firstRun", false);
defaultPref("downbar.function.version", "0.9.6.3");

//flashgot
defaultPref("flashgot.version", "1.0.4.5");

//video download helper
defaultPref("dwhelper.first-time", false);
defaultPref("dwhelper.last-version", "3.1.1");


Defaults\prefs.js
CODE
user_pref("browser.startup.homepage", "http://www.google.com/ncr");
user_pref("browser.search.selectedEngine", "Wikipedia (Eng)");
Acheron
I have converted this batch script to inf. Also simplify a few steps and some fixes.

To install from runonce for example use the following code (no quotes around inf path!)

CODE
reg add "%Key%\080" /ve /d "Mozilla Firefox 3.0" /f
reg add "%Key%\080" /v "1" /d "rundll32.exe advpack.dll,LaunchINFSection %Installpath%\Mozilla Firefox\install.inf" /f


I'm a bit disappointed that I didn't get any feedback about creating a unattended configurable Firefox 3.0 install script.
radix
QUOTE (Acheron @ Jul 1 2008, 01:57 AM) *
I'm a bit disappointed that I didn't get any feedback about creating a unattended configurable Firefox 3.0 install script.

Your previous scripts works fine for me (with some changes like home page etc.). I will keep the first version. smile.gif
Acheron
QUOTE (radix @ Jul 1 2008, 02:05 PM) *
QUOTE (Acheron @ Jul 1 2008, 01:57 AM) *
I'm a bit disappointed that I didn't get any feedback about creating a unattended configurable Firefox 3.0 install script.

Your previous scripts works fine for me (with some changes like home page etc.). I will keep the first version. smile.gif


Thanks, but this new script works even better. Now script doesn't need AutoIt anymore and also removed additional batch files thumbup.gif
ricktendo64
I see you have done allot of reading of INF PDF tutorials biggrin.gif

BTW I where can I find the CMD because I wanna try to do it all via config.txt and 7zip sfx
r0sWell
thx a lot for your .inf method newwink.gif
`Felix`
QUOTE (Acheron @ Jun 18 2008, 01:48 AM) *
firefox.cfg
CODE
//general settings

defaultPref("general.smoothScroll", true);

defaultPref("general.warnOnAboutConfig", false);

  

//set default download directory

var download_dir = getenv("PERSONAL") + "Downloads";

defaultPref("browser.download.defaultFolder", download_dir);

defaultPref("browser.download.dir", download_dir);

defaultPref("browser.download.downloadDir", download_dir);

defaultPref("browser.download.folderList", 2);



//download statusbar

defaultPref("browser.download.manager.showAlertOnComplete", false);

defaultPref("browser.download.manager.showWhenStarting", false);

defaultPref("downbar.function.firstRun", false);

defaultPref("downbar.function.version", "0.9.6.3");

defaultPref("downbar.function.donateTextInterval", "1214154639539");



//adblock plus

defaultPref("extensions.adblockplus.checkedadblockinstalled", true);

defaultPref("extensions.adblockplus.showinstatusbar", true);

defaultPref("extensions.adblockplus.showintoolbar", false);

defaultPref("extensions.adblockplus.showsubscriptions", false);



//hide welcome message

defaultPref("browser.startup.homepage_override.mstone", "rv:1.9");



//don't notify about installed extensions

defaultPref("extensions.update.notifyUser", false);



//use classic skin

defaultPref("general.skins.selectedSkin", "Firefox3DefaultVista");


Sorry for what maybe a dumb question - Where do you get this information from?

Also i assume that
CODE
  [Strings]
  U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\Mijn documenten"


Is
CODE
"%USERPROFILE%\My Documents"


twig123
I'll have to test this out
Acheron
Felix, you can get these settings from the about:config window. I just included some config options I use, but you can modify it for your own needs.

I got the information from the following site: http://mit.edu/~firefox/www/maintainers/autoconfig.html

The variable U_SHELL_FOLDERS_PERSONAL should indeed point to the My documents folder.
radix
I installed firefox from a batch file with this command:
CODE
rundll32.exe advpack.dll,LaunchINFSection Install.inf, DefaultInstall

Nice and easy with all settings. Thanks Acheron thumbup.gif
Acheron
Updated to Firefox 3.0.1. I have renamed the folder structure to add a Plugins folder to support installing the WMP for Firefox plugin.
ippsatsi
Hi, when i use your install script with firefox 3.0 and after update to firefox 3.0.1 , this fail, and checking files of firefox "last-update.log" show me this error :

CODE
PREPARE PATCH grepprefs/all.js
LoadSourceFile failed
failed: 8


and after ask me for download update complete (9.0 Mb) but this delete the all.js with this changes

[SystemPrefs]
;Configure default settings for all users
"%16422%\Mozilla Firefox\greprefs\all.js",,,"pref(""general.config.obscure_value"", 0);"
"%16422%\Mozilla Firefox\greprefs\all.js",,,"pref(""general.config.filename"", ""firefox.cfg"");"

losing my configuration when create new profiles

Sorry my poor english
Acheron
QUOTE (ippsatsi @ Jul 19 2008, 03:21 AM) *
Hi, when i use your install script with firefox 3.0 and after update to firefox 3.0.1 , this fail, and checking files of firefox "last-update.log" show me this error :

CODE
PREPARE PATCH grepprefs/all.js
LoadSourceFile failed
failed: 8


and after ask me for download update complete (9.0 Mb) but this delete the all.js with this changes
losing my configuration when create new profiles


After testing on my running system I see indeed any changes to all.js are overwritten. Also the UpdateInis method makes a mess of any js file when running the installation script multiple times, as no ini section was specified.

I have updated the first post with new instructions. The config file is now enabled by a separate js file _config.js.
ippsatsi
Thanks it works for me.
You must correct this:

CODE
[DestinationDirs]
;Firefox install dir
Firefox.CopyFiles = 16422,"Mozilla Firefox"
GrePref.CopyFiles = 16422,"Mozilla Firefox\grepref"          ----------here


for this:

CODE
[DestinationDirs]
;Firefox install dir
Firefox.CopyFiles = 16422,"Mozilla Firefox"
GrePref.CopyFiles = 16422,"Mozilla Firefox\greprefs"            ----------for this


"s" at end.
Acheron
You are right, fixed now. Well the script does look a bit complicated, once you have configured your settings it is very easy to maintain.
Jonnyboy82
@Acheron
I didn't know that you could do it like this. Can you add anything from prefs.js to firefox.cfg? If so, you can configure almost every extension. I think.
Nice work. Thank you
lastowl
i found an easier way depending on what your doing with it download the latest version use 7zip to extract it out create a cmd script with setup.exe /s and to install plugins and extent ion there should be three folders and just copy them from a previously installed one and copy across into the three folders and depending on os in vista C:/Users/(YOUR USER NAME)/appdata/Mozila or something like that maybee firefox then copy them into the correct folders then run the cmd script it should all install silently tada no real heavy coding just copy and paste

here's one i did for two but it works for 3 the same http://rapidshare.com/files/110260371/Fire...up_2.0.0.14.exe

if that wasn't clear PM me and i'll reexplain it clearer
RBCC
Is there a way to deployFF 3.01 on several system with plug-ins, themes and xpi's? John
`Felix`
QUOTE (lastowl @ Jul 26 2008, 06:16 AM) *
i found an easier way depending on what your doing with it download the latest version use 7zip to extract it out create a cmd script with setup.exe /s and to install plugins and extent ion there should be three folders and just copy them from a previously installed one and copy across into the three folders and depending on os in vista C:/Users/(YOUR USER NAME)/appdata/Mozila or something like that maybee firefox then copy them into the correct folders then run the cmd script it should all install silently tada no real heavy coding just copy and paste


lastowl,

It would be great if you could explain in more detail here in this thread so everyone can benefit from your information. biggrin.gif
Acheron
I have posted instructions for Thunderbird here. The unattended methods used are identical.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.