Jump to content

How to silently install firefox to a specific directory?


Recommended Posts

Posted

Hi,

Thanks to all who post to this forum. Lots of good tidbits in here!

I am hoping to find a way to install firefox2.x silently to a specific directory...

Extracting the latest firefox2.0.0.12.exe, I got directories and another setup.exe. Extracting that got me an [NSIS].nsi file, which made me believe that I could use standard NSIS commands (setup.exe /S /D=%PROGRAMFILES%\Internet\Firefox2) but was not successful.

The NSIS script seemed to be assembly, which confused me, but I'm not big on NSIS scripting anyway. There does seem to be a place where "$INSTDIR" or something similar located, but didn't see any clear way to modify it's value.

Anyone know a good (and relatively painless) solution for me?

Thanks!


Posted

Got it... Don't you love self answered posts?

For everyone interested in this topic, please read on.

My naivety got the best of me here. I was right - the setup.exe inside the main installer is NSIS. That means it should work with the /D=CUSTOMDIRECTORY switch. My mistake was that I couldn't simply use the nLite Addon Maker on that directory. By first SFXing the entire directory with a script like:

TempMode

Silent=1

Overwrite=1

Setup=setup.exe /S /D=%PROGRAMFILES%\Internet\Firefox2

and then using the Addon Maker, I was able to install it to my desired directory. It seems this is rather common - I had a similar problem with IrfanView, and couldn't understand why I was the only one with problems. This method solved that problem for me as well.

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