Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Unattended Mozilla Install

- - - - -

  • Please log in to reply
70 replies to this topic

#1
Spad

Spad
  • Member
  • 2 posts
  • Joined 03-June 04
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/...2k/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.


How to remove advertisement from MSFN

#2
my2001

my2001

    Member

  • Member
  • PipPip
  • 260 posts
  • Joined 31-May 04
Hi Spad!

Oh, very nice, indeed! I don't have time to apply your hints to my system now, but thanks a lot in advance, I guess they are very useful for me. :)

#3
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
Thanx spad

very useful - shall try it out now.
I used to just copy the installed directory previously, but that way, I wouldn't get the registry entries. I suppose this way I can.
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#4
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Would this also work for Firefox?? :)

Thank you! Very usefull!

#5
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
The same method should work for firefox/thunderbird as well, since it uses the same installer.
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#6
996

996

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 19-September 03

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

#7
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Thanks for testing. And too bad it didn't work :'(

#8
996

996

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 19-September 03

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

#9
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
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 :) )
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#10
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
That's what I WAS doing and AM doing... (sfx) Only this method could have turned out to be better and easier...

#11
996

996

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 19-September 03

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


#12
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
all their sizes are 1025? :)
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#13
996

996

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 19-September 03

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

#14
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
huh.....
well, then back to the drawing board....

did you use the 1.6 setup? or the 1.7?
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#15
996

996

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 19-September 03

did you use the 1.6 setup? or the 1.7?

I used the 1.6 installer because it is a stable build. Maybe we should try the 1.7...

#16
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
dunno
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#17
996

996

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 19-September 03
The installer file versions for 1.6 and 1.7RC3 are the same.
I have to report that now Mozilla DOES show up in the add/remove programs dialog (as Mozilla Firefox 0.8). Maybe I was just too tired and overlooked it yesterday or the machine needs a reboot before this shows in the add/remove section...

I'm still working on slipstreaming extensions into the installer and any help towards that is greatly appreciated...

EDIT:
Firefox shows up in add/remove programs when NONE of the slipstreamed extensions in config.ini fails. Should one of these extensions fail to install, Firefox is installed correctly nontheless but the script aborts and the uninstaller isn't copied over to the installation directory and NOT added to the add/remove section.

#18
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
Hey Alanoll,996 & Bashrat!
carry on with the good work.

Looks like we are just 2 days of discussions away from *FORCING* this beast (moz installer) to work for us. My wishes are with you :tongue:
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#19
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
I believe the Mozilla one works fine....

the only problem is the components/plugins....and that was some custom ones he included, not the presets.....
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#20
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • Joined 14-November 03
  • OS:Windows 8 x64
  • Country: Country Flag
But I don't like Mozilla the monolithic browser-cum-email, WAAAAHHH!!!!!

And I'm sure even "The only problem" will be solved soon.
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#21
edmoncu

edmoncu

    Advanced Member

  • Member
  • PipPipPip
  • 331 posts
  • Joined 28-April 04
hi guys, tried using the mozilla 2.1.6 setup.exe on a firefox 0.9 installer... it seems to work with that as well... i just executed the setup.exe from mozilla using the -ma -ira arguments.

anyhow, as with Alanoll, the screen went crazy and refreshed like crazy during the silent installation.

i was wondering, have i installed it properly?

also, looking at the config.ini file of the firefox installer, i saw these lines at the first part of the file:
[General]
; Run Mode values:
;   Normal - Shows all dialogs.  Requires user input.
;   Auto   - Shows some dialogs, but none requiring user input.  It will
;            automatically install the product using default values.
;   Silent - Show no dialogs at all.  It will install product using default
;            values.
Run Mode=Silent
it defaults to Normal, but even as I entered silent, when i run setup.exe without any arguments, im being prompted to enter where to install firefox. (kinda the same effect as using -ma -ira arguments.
Please join the growing Filipino Community of PC Experts and Enthusiasts
Posted Image

#22
996

996

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 19-September 03
@edmoncu

You have to use BOTH the -ma -ira variables AND the Run Mode=Silent string in config.ini. It will then istall all silently...

#23
edmoncu

edmoncu

    Advanced Member

  • Member
  • PipPipPip
  • 331 posts
  • Joined 28-April 04
@996: i realized, modifying some settings under the config.ini file within the firefox 0.9 installer changes the behavior of the installation. im just unsure how it effects the installation process altogether... with some modifications of the config.in file, i was able to simply double click on the setup.exe and it bypassed all dialogs... except that it pauses at the part where it is installing the Quality Feedback Agent.

here are some settings i altered:
[General]
Run Mode=Auto
;Default is Normal

[Dialog Select Install Path]
Show Dialog=FALSE
;Default is TRUE

[Dialog Downloading]
Show Dialog=FALSE
;Default is TRUE

[Dialog Install Successful]
Show Dialog=FALSE
;Default is TRUE

Attached Files


Please join the growing Filipino Community of PC Experts and Enthusiasts
Posted Image

#24
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag

@996: i realized, modifying some settings under the config.ini file within the firefox 0.9 installer changes the behavior of the installation. im just unsure how it effects the installation process altogether... with some modifications of the config.in file, i was able to simply double click on the setup.exe and it bypassed some dialogs...

here are some settings i did:
[General]
Run Mode=Auto
...
...
[Dialog Select Install Path]
Show Dialog=FALSE
...
...

SOME or ALL dialogs?

#25
996

996

    Member

  • Member
  • PipPip
  • 118 posts
  • Joined 19-September 03
Well I just checked again and it is working here using this way:
  • start the firefox installer
  • find the temp_ns folder somewhere in your temp files
  • copy its contents to a safe location
  • cancel & quit firefox installer
  • do the same with the mozilla 1.7 installer
  • copy mozillas setup.exe (file version 1.0.0.2) to the location you copied the firefox files to, replacing the original one (or rename it beforehand)
  • open config.ini and set run mode to "Silent", save it
  • from the command line run setup.exe -ma -ira
  • it installs silently
You can disable the quality feedback agent QFA in config.ini also but check if it works first...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users