rossic Posted March 2, 2008 Posted March 2, 2008 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!
rossic Posted March 2, 2008 Author Posted March 2, 2008 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:TempModeSilent=1Overwrite=1Setup=setup.exe /S /D=%PROGRAMFILES%\Internet\Firefox2and 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now