For Re-Packaging Firefox, you can follow this link:
http://msiworld.blogspot.com.au/2012/01/packaging-mozilla-firefox-901.html
For creating lock down environment create a notepad file and save it as mozilla.cfg
This file should start with "//" as first line from the second line necessary lock down options should be added.
lockdown options are available under "about:config" page.
config file(mozilla.cfg) has to be placed under "C:\Program Files\Mozilla Firefox\" folder.
for loading the config file you have to place the "local-settings.js" file under "C:\Program Files\Mozilla Firefox\defaults\pref"
following content has to be appended if file exist or this file has to be created and added.
<<-code
pref("general.config.obscure_value", 0);
pref("general.config.filename", "Mozilla.cfg");
->>end of code
for override the profile import create override.ini under "C:\Program Files\Mozilla Firefox\" and add following contents
<<-code
[XRE]
EnableProfileMigrator=false
->>end of code
i tesed with version 15 to 17 and works
for more reference : http://kb.mozillazine.org/Locking_preferences
"firefox setup 10.0.exe" -ms
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.