IPB

Google Frontpage Forums Unattended CD/DVD Guide

> 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 V   1 2 >  
Reply to this topicStart new topic
> Firefox 3.0.1 advanced inf install, IMPROVED VERSION FIXES UPDATE ISSUES
Acheron
post Jun 17 2008, 11:48 AM
Post #1


MSFN Expert
******

Group: Members
Posts: 1139
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Home
Country Flag


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)");


This post has been edited by Acheron: Jul 26 2008, 10:20 AM
Go to the top of the page
 
+Quote Post
Acheron
post Jun 30 2008, 04:57 PM
Post #2


MSFN Expert
******

Group: Members
Posts: 1139
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Home
Country Flag


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.
Go to the top of the page
 
+Quote Post
radix
post Jul 1 2008, 06:05 AM
Post #3


Advanced Member
***

Group: Members
Posts: 489
Joined: 8-February 07
Member No.: 125681
OS: XP Pro x86
Country Flag


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
Go to the top of the page
 
+Quote Post
Acheron
post Jul 1 2008, 01:25 PM
Post #4


MSFN Expert
******

Group: Members
Posts: 1139
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Home
Country Flag


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
Go to the top of the page
 
+Quote Post
ricktendo64
post Jul 1 2008, 01:55 PM
Post #5


Group: Banned Members
******

Group: Members
Posts: 1485
Joined: 6-June 06
From: Honduras
Member No.: 98200
OS: Vista Ultimate x86
Country Flag


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
Go to the top of the page
 
+Quote Post
r0sWell
post Jul 2 2008, 10:45 AM
Post #6


i want to believe
**

Group: Members
Posts: 201
Joined: 9-June 04
From: Lille
Member No.: 22219
OS: XP Pro x86
Country Flag


thx a lot for your .inf method newwink.gif
Go to the top of the page
 
+Quote Post
`Felix`
post Jul 8 2008, 05:40 AM
Post #7


MSFN Contributor
***

Group: Members
Posts: 475
Joined: 28-July 04
From: Perth, Western Australia
Member No.: 25674
Country Flag


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"


Go to the top of the page
 
+Quote Post
twig123
post Jul 8 2008, 06:32 AM
Post #8


Advanced Member
***

Group: Members
Posts: 364
Joined: 2-October 05
Member No.: 75379
Country Flag


I'll have to test this out
Go to the top of the page
 
+Quote Post
Acheron
post Jul 8 2008, 10:49 AM
Post #9


MSFN Expert
******

Group: Members
Posts: 1139
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Home
Country Flag


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.
Go to the top of the page
 
+Quote Post
radix
post Jul 8 2008, 02:25 PM
Post #10


Advanced Member
***

Group: Members
Posts: 489
Joined: 8-February 07
Member No.: 125681
OS: XP Pro x86
Country Flag


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

This post has been edited by radix: Jul 8 2008, 02:27 PM
Go to the top of the page
 
+Quote Post
Acheron
post Jul 17 2008, 09:29 AM
Post #11


MSFN Expert
******

Group: Members
Posts: 1139
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Home
Country Flag


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.
Go to the top of the page
 
+Quote Post
ippsatsi
post Jul 18 2008, 07:21 PM
Post #12





Group: Members
Posts: 7
Joined: 29-May 04
From: Lima
Member No.: 21002
OS: XP Pro x86
Country Flag


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
Go to the top of the page
 
+Quote Post
Acheron
post Jul 19 2008, 07:43 AM
Post #13


MSFN Expert
******

Group: Members
Posts: 1139
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Home
Country Flag


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.
Go to the top of the page
 
+Quote Post
ippsatsi
post Jul 20 2008, 02:47 PM
Post #14





Group: Members
Posts: 7
Joined: 29-May 04
From: Lima
Member No.: 21002
OS: XP Pro x86
Country Flag


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.
Go to the top of the page
 
+Quote Post
Acheron
post Jul 20 2008, 04:07 PM
Post #15


MSFN Expert
******

Group: Members
Posts: 1139
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Home
Country Flag


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.
Go to the top of the page
 
+Quote Post
Jonnyboy82
post Jul 22 2008, 04:32 PM
Post #16


Lazzy Trucker


Group: Members
Posts: 35
Joined: 18-September 07
Member No.: 155201
OS: XP Pro x86
Country Flag


@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