Facebook Twitter Gplus E-mail RSS
 
 
Home » Linux » Customizing Firefox Installer Using Linux Terminal
formats

Customizing Firefox Installer Using Linux Terminal

Published on January 9th, 2012 by in Linux

1. First download the latest version of mozilla-firefox ‘.exe’ from official website.

2. Now you need 7-zip. If you don’t have it then download & install by typing:

sudo apt-get install p7zip-full

3. Now you need to extract the ‘.exe’ file you just downloaded. First locate the directory of your ‘.exe’ file. Mine is ‘home’

cd /home

4. Now type this command to extract (I have downloaded 9.0.1 version)

7z x "Firefox Setup 9.0.1.exe"

5. This will take a while. Then if you want to add any extensions or any other informations just go to your ‘home/core’ and modify or add anything you want. Suppose you want to add an extension, go to extension folder then create a new folder and copy paste your unzipped extension files. Open the .rdf file with text editor and look for ‘em id’ and copy that id. Now go one step back of your file  browser and rename the newly created folder with that ‘id’.

6. Now its time for repackaging the installer. First you need to zip-up the changes you just made. Type:

7z a -r -t7z app.7z -mx -m0=BCJ2 -m1=LZMA:d24 -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3

7. You will see a new file named ‘app.7z’. Now to create the final ‘.exe’ we need a small ‘.sfx’ file to download. Download this file.

8. Now create a new empty/blank file name it ‘app.tag’. Open it by text editor and put these lines then save it.

;!@Install@!UTF-8!
Title=”Mozilla Firefox”
RunProgram=”setup.exe”
;!@InstallEnd@!

9. Now make sure that your ‘/home’ directory consists ’7zsD.sfx, app.7z, app.tag’. If not then look up and do the missing part.

10. Now the final command. Type:

cat 7zSD.sfx app.tag app.7z > setup_firefox_9.0.1.exe

You are done.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© mythrobin•com
credit