Answering Profman about customizing without the CCK

A section for all development and testing programmes and customised browsers written by SillyDog701 community. Featured products including Donzilla, Firescape, DJGM Distro, and Netscape Streamline.

Answering Profman about customizing without the CCK

Postby ChrisI » Wed 14 Apr, 2004 2:18 am

profman wrote:The same customizations that the Netscape CCK took care of for a customized distribution to other people. This includes, but not limited to, pre-set bookmarks; pre-set personal toolbar; putting a custom label on the Title Bar and the start button folder; replace the throbber and throbber label; customize the UserAgent line; and give options for what components to install. This last option is not as big of a deal with Mozilla as it was with Netscape since Mozilla does not have all the "extra baggage" of Netscape.

I'd be a happy person if you could point me to info that would make all that possible!:)

You'll need to have a file zipper application, such as WinZip, and the Mozilla offline installer, which contains all the components in one file.

Run the installer. When you get your first setup window, go to your Windows TEMP directory. If you are using a Windows NTFS system, such as Windows XP, the TEMP directory will appear in Documents and Settings folder. Example: C:\Documents and Settings\Chris\Local Settings\Temp. Within the temp directory there will be a folder named ns_temp. This folder is the equivalent of the Output folder, when using the CCK. Copy it to a safe place, and cancel the open setup window.

Within ns_temp, you'll see:
setup.exe, which starts the setup process
config.ini, which is the contents of the setup process
An XPI installer for each component
ZIP files for components that can be installed separately
Other files that you won't need to worry about.

Anything you want to customize regarding the setup process is done through editing config.ini. You can edit it with any text editor. It is very well documented, so it should be quite easy to find your way around.

Each of the XPI files are zipped archives that get unzipped during install. You can use WinZip to edit the files within each of those.

By editing config.ini and the XPI files directly, you'll find that you can do can customize it much more than you would with a CCK tool. Holger's Netscape Compact is a great example of this.

First, lets start with install process, first of which is the name of the Start menu folder.
Open GONFIG.INI, and search for Program Folder Name=Mozilla. Replace Mozilla with whatever you want the folder to be called.

Next is configuring the setup types. A little further down you'll see a section that starts with [Dialog Setup Type].
You can set up as much as 4 different types.
Description Short= is the description you see beside the check box
Description Long= is the detailed description seen at the bottom of the window.
From there you can choose which components go into that setup type. The only thing you need to keep in mind is to make sure the first component is numbered C0 and it increases numerically from there. (C1, C2, etc.)

Save config.ini.

The rest is just a matter of knowing where the default settings lie, and how to change them.

The default bookmarks (which contains the personal toolbar folder) is different for every region pack, so that is the XPI that it is kept in. If you are going to use the US region pack the XPI's to edit are REGUS.XPI and DEFLENUS.XPI. As stated earlier, XPI's are archives that can be viewed and edited using WinZip. Within REGUS.XPI, you'll find bookmarks.html under bin\defaults\profile\US\. Within DEFLENUS.XPI, you'll find bookmarks.html under bin\defaults\profile\. You can customize your own bookmarks file by opening a new profile in a current install, and adding/subtracting whichever site you want. You can even edit it via Notepad, if you wish. Replace the archived file with the your custom made bookmarks.html and your default bookmarks are taken care of.

The label on the title bar depends on the language pack. The XPI is LANGENUS.XPI. With that, you'll see en-US.jar, which is another archive. You'll have to unzip that too. The file to edit is brand.dtd. You can edit it via Notepad.

The throbber and user-agent are both kept in BROWSER.XPI. The throbber is specific to each skin, so within BROWSER.XPI, you'll have to unzip both classic.jar, and modern.jar.
throbber-single.gif is the inactive throbber.
throbber-anim.gif is the active throbber.
throbber16-single.gif is the inactive throbber for full screen mode.
throbber16-anim.gif is the active throbber for full screen mode.

Replace those file with whatever you want.

The tooltip for the throbber is in LANGENUS.XPI -> en-US.jar -> navigator.dtd
Look for the line:
<!ENTITY throbber.tooltip "Go to the &vendorShortName; home page">

&vendorShortName; is a place holder for the item we edited in brand.dtd.

Finally the user agent. BROWSER.XPI -> browser-prefs.js.
Open it via Notepad and add these lines:
pref("general.useragent.vendor", "Netscape");
pref("general.useragent.vendorSub", "7.1");
pref("general.useragent.vendorComment", "Compact");


The settings in the lines above are what is used for Netscape 7.1 Compact. You can edit those to your liking.

And there you go. One thing to remember is, when you replace files within archives, make sure you maintain the file paths. For instance, browser-prefs.js is kept in bin\defaults\pref\.

As you probably figured, by editing the XPI files and CONFIG.INI directly, the possibilities are almost endless. The file structure of Netscape 7.1 is a little different, since it's based on Mozilla 1.4. For instance the user-agent pref lines are kept in all.js (actually all-ns.js, but that's another story). Since there is no all.js for Mozilla 1.7Beta, and assumed browser-prefs.js would work, since that seems to be the replacement.

The last step, if you'd like, is to turn ns_temp into one self-extracting EXE file. WinZip Self-Extractor can be used to accomplish this.

Some more info:
http://www.holgermetzger.de/CCK.html
http://members.rogers.com/mozlinks/jenny.html
http://members.rogers.com/mozlinks/holger.html
http://members.rogers.com/mozlinks/holger2.html
http://members.rogers.com/mozlinks/holger3.html

Enjoy. :)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040316
Chris I
Please do not send me tech support questions privately.
User avatar
ChrisI
Mozilla Champion
Mozilla Champion
 
Posts: 234
Joined: Thu 12 Jun, 2003 3:41 am
Location: Toronto

Postby Antony » Wed 14 Apr, 2004 5:50 am

I sent profman a special guide (in PDF, non-disclosure) written by me, right after the Netscape 7.1 Streamline was available (during testing period).
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) (CK-SillyDog)
User avatar
Antony
diamond member
diamond member
 
Posts: 15258
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby profman » Wed 14 Apr, 2004 11:44 am

Antony wrote:I sent profman a special guide (in PDF, non-disclosure) written by me, right after the Netscape 7.1 Streamline was available (during testing period).

I very much appreciate the information that antony had earlier sent me. That information was received for the purpose of customizing Netscape 7.1, and I was asked not to share that information with others. That information has not been shared. I never did customize Netscape 7.1.

I remain very interested in learning how to customize Mozilla (and, possibly, a newer version of Netscape) without the availability of any type of CCK software. I saw that there were some discussion about such customizations in the Netscape/Mozilla forum, and that ChrisI was interested in what customizations that I wanted to make. Since he was willing to talk about some of the methods that he knew about, I asked him to discuss the topic in the Customised Build forum where such topics properly belong. I appreciate his response just as I appreciate antony's willingness to help me learn about customizations.
UserAgent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
profman, the mad chemist
Moderator of SillyDog Forums
User of Thunderbird & Firefox
Try Forum Search
User avatar
profman
Moderator
Moderator
 
Posts: 1537
Joined: Wed 11 Sep, 2002 8:00 pm

Postby DJGM » Sat 24 Jul, 2004 10:22 am

ChrisI wrote:The tooltip for the throbber is in LANGENUS.XPI -> en-US.jar -> navigator.dtd
Look for the line:
<!ENTITY throbber.tooltip "Go to the &vendorShortName; home page">

&vendorShortName; is a place holder for the item we edited in brand.dtd.

Finally the user agent. BROWSER.XPI -> browser-prefs.js.
Open it via Notepad and add these lines:
pref("general.useragent.vendor", "Netscape");
pref("general.useragent.vendorSub", "7.1");
pref("general.useragent.vendorComment", "Compact");


What's the best way of adding these UA customisations to a copy of Mozilla 1.x and/or Firefox?
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
SeaMonkey = Swiss Army Knife: It's versatile, reliable, and contains useful tools.
Windows Internet Explorer = Old Swiss Cheese: Full of holes, and it stinks!
User avatar
DJGM
diamond member
diamond member
 
Posts: 4655
Joined: Wed 19 Jun, 2002 1:03 pm
Location: Manchester, England, UK

Re: Answering Profman about customizing without the CCK

Postby profman » Mon 26 Jul, 2010 9:03 am

Thanks for all your well-written help. Without you, I'd be lost! Thank you very much! :)
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.7) Gecko/20100713 Firefox/3.6.7 (.NET CLR 3.5.30729)
profman, the mad chemist
Moderator of SillyDog Forums
User of Thunderbird & Firefox
Try Forum Search
User avatar
profman
Moderator
Moderator
 
Posts: 1537
Joined: Wed 11 Sep, 2002 8:00 pm


Return to SD701 DevZone

Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]