Jump to content

Unattended Mozilla Install


Spad

Recommended Posts

I've been looking around for someway of installing certain aspects of Mozilla through a silent install (as opposed to the -ma -ira switches) and I've found it here: http://acd.ucar.edu/~fredrick/win2k/mozilla.html - I've actually modded it a bit because it's quicker just to set the default install type to "0" (Browser only) than to customize the existing default if you just want the browser. Obviously if you want multiple components, follow the rest of his guide, which also shows you how to change the default Mozilla prefs.

Making Mozilla install silently and unattended

    * I downloaded "mozilla-win32-1.4-installer.exe"

    * I ran the installer, and before the first question, copied the contents of the folder "ns_temp" from C:\Documents and Settings\fredrick\ Local Settings\Temp\ns_temp. (if you don't grab a copy of this directory, the Mozilla installer deletes it after its install.

    * I quit the Mozilla installer.

    * Within ns_temp you'll see a setup.exe program, a bunch of .xpi files, and a couple of .ini files. The xpi files are actually zip files with a different 3-letter extension, ".xpi".

    * To achieve a silent install, edit config.ini and change the Run Mode in the first line to be "silent". Or to get a little more information, you can use the "Auto" setting which will show dialogs but not require user input.

    * I didn't want to install the IRC chat option or quality feedback agent (QFA) in Mozilla, so in config.ini I went to the section [setup Type]. I changed the setup type to 2 with the line:

; Default Setup Type values:

; Setup Type 0 - first radio button (default)

; Setup Type 1 - second radio button

; Setup Type 2 - third radio button

; Setup Type 3 - fourth radio button (usually the Custom option)

Default Setup Type=Setup Type 0

Further down in the config.ini, locate this:
[setup Type0];*** LOCALIZE ME BABY ***

Description Short=Bro&wser only

;*** LOCALIZE ME BABY ***

Description Long=Program will be installed with the minimal options.

; List of components to install/enable for this Setup Type.

; All other components not listed here will be disabled if

; this Setup Type is selected.

C0=Component XPCOM

C1=Component GRE

C2=Component Navigator

C3=Component Uninstaller

C4=Component US English Profile Defaults

C5=Component En US lang pack

C6=Component US region pack

; Make sure Component QFA is LAST so 3rd party developers who might not want

; this component can easily remove it.

;C7=Component QFA

And comment out the QFA (unless you want it).

Then finally just set your system.cmd/RunOnceEx.cmd to run "setup.exe -ma -ira" from the mozilla folder.

Link to comment
Share on other sites


The same method should work for firefox/thunderbird as well, since it uses the same installer.

I have just tried it. Sadly Firefox 0.8 bluntly ignores the Run Mode=Silent and Auto flags....

Link to comment
Share on other sites

Thanks for testing. And too bad it didn't work :'(

It is such a pity. Recently my Internet Explorer 6 gave up its java capabilities overnight and I wasn't able to fix it. I didn't want to reinstall XP just yet so I started using Firefox, which I had installed for quite a while now - I just never used it. I really fell in love with Firefox in the last few days and a silent install like Mozilla (supposedly) would have been beautiful because the config.ini allows a very neat way to install and maintain plug-ins (which wouldn't be possible with a home made msi). The only flaw in my new browser of choice... no silent install... :)

Link to comment
Share on other sites

I never understood why people just didn't create a SFX archive from the ZIP download.....

I'll look into the installer....

well now.....wasn't too hard...

Replace the setup.exe included with Firefox and replace it with the one frmo Mozilla. Then it should work.... (as a note, your screen may go alittle crazy, but maybe it's because I tested it on Win98 :) )

Link to comment
Share on other sites

well now.....wasn't too hard...

Replace the setup.exe included with Firefox and replace it with the one frmo Mozilla. Then it should work.... (as a note, your screen may go alittle crazy, but maybe it's because I tested it on Win98 :) )

Oh wow... I never thought of that....

I'm gonna try that right away...

HORRAY! It works! Firefox installs silently...

The only thing that failed is the installation of the plugins which i fiddled carefully into CONFIG.INI...

; List of components to install/enable for this Setup Type.
; All other components not listed here will be disabled if
; this Setup Type is selected.
C0=Component XPCOM
C1=Component Browser
C2=Component Uninstaller
C3=Component UK English Profile Defaults
C4=Component En GB lang pack
C5=Component UK region pack
C6=Component Google Bar
C7=Component FireSomething
C8=Component Sort Bookmarks
C9=Component Text Links
; Make sure Component QFA is LAST so 3rd party developers who might not want
; this component can easily remove it.
; C6=Component QFA

;#####################
;# CUSTOM COMPONENTS #
;#####################

[Component Google Bar]
Description Short=Google Bar
;*** LOCALIZE ME BABY ***
Description Long=Google's Toolbar ported for FireFox
Archive=googlebar0_8.xpi
Install Size=1025
Install Size System=0
Attributes=SELECTED|FORCE_UPGRADE
Force Upgrade File0=[SETUP PATH]\install.js

[Component FireSomething]
Description Short=FireSomething
;*** LOCALIZE ME BABY ***
Description Long=All your branding are belong to Firesomething
Archive=firesomething.xpi
Install Size=1025
Install Size System=0
Attributes=SELECTED|FORCE_UPGRADE
Force Upgrade File0=[SETUP PATH]\chrome\firesomething.jar

[Component Sort Bookmarks]
Description Short=Sort Bookmarks
;*** LOCALIZE ME BABY ***
Description Long=Sort bookmarks alphabetically
Archive=sortbookmarks.xpi
Install Size=1025
Install Size System=0
Attributes=SELECTED|FORCE_UPGRADE
Force Upgrade File0=[SETUP PATH]\sortbookmarks.jar

[Component Text Links]
Description Short=Text Links
;*** LOCALIZE ME BABY ***
Description Long=Treats selected plain text urls as links, right click to open
Archive=textlink.xpi
Install Size=1025
Install Size System=0
Attributes=SELECTED|FORCE_UPGRADE
Force Upgrade File0=[SETUP PATH]\textlink.jar

Link to comment
Share on other sites

all their sizes are 1025? :)

No, but the sizes given in the other components don't make sense... Its not the XPI file size not the number of files in the archive...etc... Slipstreaming extensions into Mozilla is still a mystery.

Oh yeah, I also found the first bug. Using the Mozilla installer the Firefox browser ist't added to the Add/Remove Programs list and the uninstaller isnt copied over for some reason...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...