Help - Search - Members - Calendar
Full Version: Mozilla Firefox 0.8 (silent install done!)
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
paugq
I have NSIS 2.0 scripts to make a new package of Mozilla Firefox.

I have tested it and it works. It allows you to make a silent installation using the /S parameter.

I am writing some documentation. I will post here ASAP (maybe tonight).
paugq
It's available at http://mozilla.elpauer.org and attached to this post.

Edited on 20040312:
I have corrected a type in installer.conf.nsh at line 130. If you downloaded the scripts before March 12th, download them again (I have replaced the ZIP attachmed to this post)
flattspott
This gave me an error @ line 220.

But thanks for letting me know how to repackage an installer.
I did one from scratch and include the java, quicktime and flashget plugins.

BTW, what Regisry keys did you add.?
paugq
You were right. There was a typo in installer.conf.nsh. I have corrected it. Thanks.

I have changed a lot of keys from Seb's installer, because the keys he used to use were not the same as the official. You can see which keys I have added in installer.nsi, looking between "; Pau" and "; Pau". Seb's keys are still there, but commented.
patters
I just compiled this up. I'm surprised you didn't make the Start Menu shortcuts in All Users.
patters
I made my own zip file in the end, with this .REG to help the plugins...

REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox 0.8.]
"GeckoVer"="1.0.1"
[HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox 0.8.\bin]
"PathToExe"="C:\\program files\\Mozilla Firefox\\firefox.exe"
[HKEY_LOCAL_MACHINE\Software\Mozilla\Mozilla Firefox 0.8.\Extensions]
"Plugins"="C:\\Program Files\\Mozilla Firefox\\Plugins"
"Components"="C:\\Program Files\\Mozilla Firefox\\Components"
[HKEY_LOCAL_MACHINE\SOFTWARE\mozilla.org\Mozilla]
"CurrentVersion"="1.6"

I found it was easier to install all the plugins before I zipped it up (QuickTime alt, Real alt, Flash, Shockwave).
RayOK
paugg.. Took your zip file and made my silent Firefox 0.8 + Quicktime/Real Alternative Plugins + few more search thingies and works great!! Thanks so much for that.

I wish I could post it but I'm not sure of my bandwidth requirements and don't wanna pay any more money. If someone can give me a host for this 6.44mb file, I will be glad to send it.
thedogcow
OK i got this to work but i had to add the '\' cos they were missing, but no biggie... Aynways my problem is that it installs firefox to c:\rogram files\firefox instead of c:\program files\mozilla firefox... Anyone know how to correct this??? Help!
RayOK
I can help ya. Install folder is set in installer.nsi on the line:

InstallDir "$PROGRAMFILES\${NAME}" about 1/3 of the way down

Means it goes into Program Files\${NAME}

and ${NAME} is set in installer.conf.nsh on the line:

!define NAME "Firefox" ; fill this in when not using cmdline compiler near top

So, to change the install folder I you can either change what ${NAME} is set to or what
InstallDir is set to. I'm not sure where else ${NAME} is used so I would change InstallDir to something like:

InstallDir "$PROGRAMFILES\Mozilla Firefox"

That should do it. Try that out and tell me what happens.
cool.gif


I also have a question. I already added more search plugins and the plugins for Quicktime and Real Alternative, so how do I add more extensions (.xpi) and a custom theme? (.jar)
thedogcow
OK this blows hard... I changed the actual constant 'name' and now many things are named "mozilla mozilla firefox" BUT it did appear in the right folder... The uninstaller still doesn't work and my bookmarks and many plugins still dont show up sad.gif I Might try using the zip version of firefox istall not the original ece i installed it with... I'll report back soon
thedogcow
Just a quickie, you can just change InstallDir to ${Group} ${Name}

OK.. Cannot find the firefox zip package anywhere on mozilla.org... anyone know where i could grab this???
RayOK
Isn't the zip in your folder that your using for the nsis install? C:\myffx\ffx or whatever? If not, you can get it from here. Or the latest nightly build here.
dkreifus
I'm new to this unattended install stuff and switches..I am very confused by this post...i simply want to add Firefox into my CMD file to have it install silently when I install XP...
Can you guys clarify a bit?
RayOK
Well, with the .exe released for Firefox 0.8 there is no way (that we know of) to install it silently. So with the NSIS (Nullsoft Installer) scripts that paugg, and Seb, made we are taking the .zip version of Firefox 0.8 and making our own install that will do it silently.

There is a readme in the download above that will explain what do download and how to make it, or if you want I can email you the .exe I made. Just post your email or PM me with it.

Hope that helps!

unsure.gif
jetman
QUOTE (paugq @ Mar 11 2004, 12:31 PM)
I have NSIS 2.0 scripts to make a new package of Mozilla Firefox.

I have tested it and it works. It allows you to make a silent installation using the /S parameter.

I am writing some documentation. I will post here ASAP (maybe tonight).

I ask these questions w/o even looking at the NSIS docs, but has anyone dealt w/ the issues of:

1) Making Firefox the default browser
2) Putting Firefox in the Quick Launch toolbar

I'm inquiring, in case someone has already beaten me to this. Is there any interest in this kind of enhancement ? I know I am. Later....Jet
RayOK
I made an install using the scripts and it works perfectly.
As for the issues, #1 I am not sure how to do but whenever you start Firefox for the 1st time it'll ask if you want it as the default. Just click Yes and that's it. For #2, the setup does this automatically. It creates shortcuts on the desktop, quick launch, start menu and an uninstall in the start menu and add/remove.
Shannon
QUOTE (jetman @ Apr 22 2004, 03:50 PM)
QUOTE (paugq @ Mar 11 2004, 12:31 PM)
I have NSIS 2.0 scripts to make a new package of Mozilla Firefox.

I have tested it and it works. It allows you to make a silent installation using the /S parameter.

I am writing some documentation. I will post here ASAP (maybe tonight).

I ask these questions w/o even looking at the NSIS docs, but has anyone dealt w/ the issues of:

1) Making Firefox the default browser
2) Putting Firefox in the Quick Launch toolbar

I'm inquiring, in case someone has already beaten me to this. Is there any interest in this kind of enhancement ? I know I am. Later....Jet

2) You could take the long way around and use the registry to associate all the html files and such with Firefox...
jetman
QUOTE (RayOK @ Apr 23 2004, 04:01 PM)
I made an install using the scripts and it works perfectly.
As for the issues, #1 I am not sure how to do but whenever you start Firefox for the 1st time it'll ask if you want it as the default. Just click Yes and that's it. For #2, the setup does this automatically. It creates shortcuts on the desktop, quick launch, start menu and an uninstall in the start menu and add/remove.

Gentlemen: Scripted resolution of the issue from my previous msg is the principal mission of an unattended install. That is, if I wanted to drop the FF icon onto the Quick Laucnh toolbar manually, I wouldn't have asked the question in the first place ! I already know how to do that ! In fact, I'm sure I can figure out how to mod the existing scripts to add the desired functionality.

This is the part about fourms like this that I don't like. Ppl don't read ! I already know that NSIS can do what I want, I just wanted to know if *someone* had already done it ! ARRGH !
RayOK
You only asked if ppl have dealt with those issues, not specifically if someone has made the .exe. Can deal with those issues by editing the scripts.. unsure.gif

Anyway, I did make a personal, limited installer. Sorry, in it, there is no way to change the options, even if you don't specifiy a silent install. (if you double click the exe it will show a NSIS box and install it, no options)

Use /S to install, case sensitive.
It installs into ?:\(Program Files)\Firefox
Creates a shortcut on the desktop, quick launch and start menu.
In the plugins folder, I included the plugins that come with the K-Lite Mega Codec Pack. They allow you to see Quicktime and Real stuff from within the browser, but maybe only if you have the Mega Codec Pack installed too.
In the searchplugins folder I added Google Images, M$ KB, IMDB.com and Dictionary.com

I am researching more about the NSIS system, trying to figure out how to add switches and a nice looking, modern user interface when double clicked. That may take a while (2-14 days I guess).

You can download it from here, thanks to [BM]Crusher for the hosting..
RayOK's Firefox 0.8 Installer 0.2
prostistudent
QUOTE (jetman @ Apr 24 2004, 10:55 AM)
QUOTE (RayOK @ Apr 23 2004, 04:01 PM)
I made an install using the scripts and it works perfectly.
As for the issues, #1 I am not sure how to do but whenever you start Firefox for the 1st time it'll ask if you want it as the default. Just click Yes and that's it. For #2, the setup does this automatically. It creates shortcuts on the desktop, quick launch, start menu and an uninstall in the start menu and add/remove.

Gentlemen: Scripted resolution of the issue from my previous msg is the principal mission of an unattended install. That is, if I wanted to drop the FF icon onto the Quick Laucnh toolbar manually, I wouldn't have asked the question in the first place ! I already know how to do that ! In fact, I'm sure I can figure out how to mod the existing scripts to add the desired functionality.

This is the part about fourms like this that I don't like. Ppl don't read ! I already know that NSIS can do what I want, I just wanted to know if *someone* had already done it ! ARRGH !

@jetman

I normally don't bother to say anything on forums, but you have prompted me to say something. mad.gif Unless posts have been edited and/or deleted:

Your reply appears to be angry at RayOK, when all he's done is answer your questions, just as you asked them. Perhaps you should read the post again.

Your questions are logical, and his reply answers those questions logically. He said that the installer creates the shortcut automatically, hence you don't have do it manually! There is no dropping of icons to be done!

It appears from your reply that you don't understand what you originally asked - maybe you should phrase your questions to better reflect what you're trying to ask. There is more that could be said, but perhaps if you reread the posts slowly enough, it may yet become clear to you.
RayOK
Thanks prostistudent.. newwink.gif

I was wondering the same things too when I read that. I'm not as brave as you so I didn't tell him to read it carefully, or quit complaining and do it himself.
Tried to help, but it's not my fault if someone doesn't understand or gets mad. That's their problem.
prostistudent
That's cool, RayOK...

And BTW, RayOK (it rhymes smile.gif), your install works like a charm. Thanks very much.
RayOK
No problem.. but it's not really my install. I just did the instructions in the zip above. Thanks to paugg and Seb (guy who originally made the scripts) for the scripts.

As for the progress on the new NSIS I mentioned I was going to create, well.. haven't started yet.. unsure.gif I know where to start, and that's with something like this example script (or this one)on getting parameters when the install is run. /S is built in but everything else I want to include, like options for shortcuts and whatever else I guess, has to be done by that example script. I'm not all that good with NSIS (only made Firefox and one for GeoShell) so if anyone is (good with NSIS) and wants to help, please! let me know..

Once I get the parameters to work I can figure out the Modern UI and make a installer interface if someone happens to just double-click the thing. After that I will consider it complete until they release Firefox 0.9+. newwink.gif
edmoncu
hmm, i was wondering since firefox 0.9 is already out, would there be by any chance we could see an nsis-based unattended firefox 0.9 installer? otherwise, care to share us how can we make such installers? rolleyes.gif
MCT
QUOTE
hmm, i was wondering since firefox 0.9 is already out, would there be by any chance we could see an nsis-based unattended firefox 0.9 installer? otherwise, care to share us how can we make such installers?
I used "Setup Factory" for my copy of 0.9, but u can also use wise installer or anything else, setup factory isnt free, so if u dont wanna spend the $ , i would use something free, its easy 2 do biggrin.gif

regards
edmoncu
thanks... so far, i have tried paugq's nsis scripts and used it to create a firefox 0.9 installer... so far, aside from following the rules he outlined at the readme file... i only edited the appearances of "0.8" and replaced those with "0.9"... it seems that it compiled to an *.exe properly. rolleyes.gif i just hope that im doing it right. blushing.gif
MCT
all i did for mine, was add the files/folder in %programfiles%\Firefox to my installer, added a shortcut in start menu & it does the rest biggrin.gif it makes all the other things needed, like %appdir% directory

regards
edmoncu
i see.. so firefox is portable after all, considering it's also distributed on a *.ZIP file.
sir_bob
Hi:

I have the scripts working just great with 0.8, but have one question. Can anyone help with where to modify the script to make the shortcuts appear for all users rather than the user that installed Firefox?


Thanks
ravashaak
Try this to relocate your shortcuts:

CODE
move /Y "C:\Documents and Settings\%username%\Start Menu\Programs\Mozilla Firefox\Mozilla Firefox.lnk" "C:\Documents and Settings\all users\Start Menu\Programs\Mozilla Firefox\"


Of course, you can replace %username% with a specific directory if you want. You may also be able to replace c: with %systemdrive%. Although, I didn't try it myself.

- Ravashaak
xtremexxx
Hi, I've been trying to get my own Mozzila 0.9x install, and everyone has bits of information, can anyone post in one post the whole silent install thing, explain it to me like I'm a 4 year old... I bet others want a guide in one place and tested/working, thanks in advance....
Shark007
Use the setup.exe from the latest Mozilla 1.71
Once you've downloaded the above file, double click it to get it to extract,
but NOT install then browse to:
C:\Documents and Settings\<username>\Local Settings\Temp\ns_temp
and grab ONLY the setup.exe file.
Use it to replace the setup.exe in firefox.
Silent install of Firefox is then done with the following switches

setup.exe -ma -ira

no muss, no fuss. Done.

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