MSFN Forum: Firefox 3.0.6 AdvancedINF Install - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Firefox 3.0.6 AdvancedINF Install Default settings for all users Rate Topic: -----

#1 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 17 June 2008 - 11:48 AM

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.

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
[Version]
Signature="$Windows NT$"

[DefaultInstall]
AddReg			   = Firefox.AddReg
CopyFiles			= Firefox.CopyFiles,GrePrefs.CopyFiles
RunPostSetupCommands = Firefox.Install:1
UpdateInis		   = override.ini

[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.6
"""%01%\Firefox306%LANG_ID%.exe"" /INI=%16422%\Mozilla Firefox\override.ini"
;Copy default profile folder
"xcopy /i /e /y ""%01%\Defaults"" ""%16422%\Mozilla Firefox\defaults\profile"""
;Create download folder in My documents
"cmd /c md ""%16389%\Downloads"""
;Create default profile
"""%16422%\Mozilla Firefox\Firefox.exe"" -CreateProfile default"
;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 start ""Installing Firefox addons"" /wait ""%%programfiles%%\Mozilla Firefox\firefox.exe"" -install-global-extension ""%%e"""
;Install themes
"cmd /c for %%e in (""%01%\Themes\*.jar"") do start ""Installing Firefox themes"" /wait ""%%programfiles%%\Mozilla Firefox\firefox.exe"" -install-global-theme ""%%e"""
;Set Firefox as default browser
"""%16422%\Mozilla Firefox\firefox.exe"" -setDefaultBrowser -silent"

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

[override.ini]
"%16422%\Mozilla Firefox\override.ini","Install",,"CloseAppNoPrompt=true"
"%16422%\Mozilla Firefox\override.ini","Install",,"DesktopShortcut=false"
"%16422%\Mozilla Firefox\override.ini","XRE",,"EnableProfileMigrator=false"

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

[Strings.0413]
LANG_ID="nl"
U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\Mijn documenten"


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


firefox.cfg
//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.6");

//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);
defaultPref("extensions.adblockplus.currentVersion", "1.0.1");

//customizegoogle
defaultPref("extensions.customizegoogle.cookies.enableDefaultPreferences", true);
defaultPref("extensions.customizegoogle.cookies.ResultsPerPage", 50);
defaultPref("extensions.customizegoogle.images.auto-page", true);
defaultPref("extensions.customizegoogle.images.image-links", true);
defaultPref("extensions.customizegoogle.images.rewrite-links", true);
defaultPref("extensions.customizegoogle.web.auto-page", true);
defaultPref("extensions.customizegoogle.web.counter", true);
defaultPref("extensions.customizegoogle.web.favicons", true);
defaultPref("extensions.customizegoogle.web.history", true);
defaultPref("extensions.customizegoogle.web.movie-links", true);
defaultPref("extensions.customizegoogle.web.news-links", true);
defaultPref("extensions.customizegoogle.web.product-links", true);
defaultPref("extensions.customizegoogle.web.search-links", true);
defaultPref("extensions.customizegoogle.web.suggest", true);
defaultPref("extensions.customizegoogle.web.weather-links", true);

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

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


Defaults\prefs.js
user_pref("browser.startup.homepage", "http://www.google.com");
user_pref("browser.search.selectedEngine", "Wikipedia (Eng)");


To install Firefox using the AdvancedINF command you simply add the following command to your unattended install script:

"rundll32.exe advpack.dll,LaunchINFSection .\PATH\TO\FIREFOX\install.inf,,1"

This post has been edited by Acheron: 26 February 2009 - 03:52 PM



#2 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 30 June 2008 - 04:57 PM

Known issues:

When Firefox is set the default browser using the -setDefaultBrowser argument a desktop shortcut is created, although no desktop shortcut was specified during install. Remove the shortcut afterwards using a cleanup script.

This post has been edited by Acheron: 26 February 2009 - 03:12 PM


#3 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 715
  • Joined: 08-February 07

Posted 01 July 2008 - 06:05 AM

View PostAcheron, on Jul 1 2008, 01:57 AM, said:

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. :)

#4 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 01 July 2008 - 01:25 PM

View Postradix, on Jul 1 2008, 02:05 PM, said:

View PostAcheron, on Jul 1 2008, 01:57 AM, said:

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. :)


Thanks, but this new script works even better. Now script doesn't need AutoIt anymore and also removed additional batch files :thumbup

#5 User is offline   ricktendo64 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,125
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 01 July 2008 - 01:55 PM

I see you have done allot of reading of INF PDF tutorials :D

BTW I where can I find the CMD because I wanna try to do it all via config.txt and 7zip sfx

#6 User is offline   r0sWell 

  • Member
  • PipPip
  • Group: Members
  • Posts: 179
  • Joined: 09-June 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 July 2008 - 10:45 AM

thx a lot for your .inf method ;)

#7 User is offline   `Felix` 

  • MSFN Contributor
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 28-July 04

Posted 08 July 2008 - 05:40 AM

View PostAcheron, on Jun 18 2008, 01:48 AM, said:

firefox.cfg
//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
  [Strings]
  U_SHELL_FOLDERS_PERSONAL="%USERPROFILE%\Mijn documenten"


Is
"%USERPROFILE%\My Documents"


#8 User is offline   twig123 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 325
  • Joined: 02-October 05

Posted 08 July 2008 - 06:32 AM

I'll have to test this out

#9 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 08 July 2008 - 10:49 AM

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/~fire...autoconfig.html

The variable U_SHELL_FOLDERS_PERSONAL should indeed point to the My documents folder.

#10 User is offline   radix 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 715
  • Joined: 08-February 07

Posted 08 July 2008 - 02:25 PM

I installed firefox from a batch file with this command:
rundll32.exe advpack.dll,LaunchINFSection Install.inf, DefaultInstall

Nice and easy with all settings. Thanks Acheron :thumbup

This post has been edited by radix: 08 July 2008 - 02:27 PM


#11 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 17 July 2008 - 09:29 AM

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.

#12 User is offline   ippsatsi 

  • Group: Members
  • Posts: 7
  • Joined: 29-May 04

Posted 18 July 2008 - 07:21 PM

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 :

 
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

#13 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 19 July 2008 - 07:43 AM

View Postippsatsi, on Jul 19 2008, 03:21 AM, said:

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 :

 
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.

#14 User is offline   ippsatsi 

  • Group: Members
  • Posts: 7
  • Joined: 29-May 04

Posted 20 July 2008 - 02:47 PM

Thanks it works for me.
You must correct this:

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


for this:

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


"s" at end.

#15 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 20 July 2008 - 04:07 PM

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.

#16 User is offline   Jonnyboy82 

  • Lazzy Trucker
  • PipPip
  • Group: Members
  • Posts: 123
  • Joined: 18-September 07

Posted 22 July 2008 - 04:32 PM

@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

#17 User is offline   lastowl 

  • Group: Members
  • Posts: 1
  • Joined: 25-July 08

Posted 25 July 2008 - 04:16 PM

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

This post has been edited by lastowl: 25 July 2008 - 04:18 PM


#18 User is offline   RBCC 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 631
  • Joined: 09-July 04

Posted 25 July 2008 - 06:51 PM

Is there a way to deployFF 3.01 on several system with plug-ins, themes and xpi's? John

#19 User is offline   `Felix` 

  • MSFN Contributor
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 28-July 04

  Posted 26 July 2008 - 04:41 AM

View Postlastowl, on Jul 26 2008, 06:16 AM, said:

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. :D

This post has been edited by `Felix`: 26 July 2008 - 04:42 AM


#20 User is offline   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 915
  • Joined: 28-June 04

Posted 27 July 2008 - 04:04 PM

I have posted instructions for Thunderbird here. The unattended methods used are identical.

This post has been edited by Acheron: 27 July 2008 - 04:04 PM


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy