Update K-Meleon To Use Seamonkey's Latest GRE

Mozilla Foundation release new versions of its GRE(Gecko Runtime Environment) and new versions of their browser products which fix newly found security holes. As K-Meleon v1.x is based on the v1.8.1 GRE and does not get updated often, the following tutorial will explain two methods of updating K-Meleon v1.x to a new GRE for those who seek better security.

The Quick & Easy Way

Brielle Bruns, Fred and desga2 (and others forum friends) has provided those users who are less experienced, less inclined to experiment, or who are time-limited, a downloadable package which contains only the bare essential files needed to update K-Meleon v1.x to use the latest Gecko. Using his package apparently eliminates some visual glitches with K-Meleon which may arise from using the manual updating method, and also eliminates the need to delete the extra *.dat files from the components folder for Gecko update to work (the installer takes care of it all for you).

To install just download the latest package to 1.1.x versions. (Installer version 4.1 Mb)
To install just download the latest package to 1.0.2 versions. (Zip version 7.7 Mb)

The Do It Yourself Way

This method assumes the user is familiar with the copying of files and folders and is willing to experiment a little to make things work.

2. Unzip the zip file, usually right-clicking on the file and selecting "Extract" should create a folder with the contents of the zip file.

3. With K-Meleon closed, copy the following files and folders from the Seamonkey directory you have just created into your existing K-Meleon directory (usually C:\Program Files\K-Meleon) and, when prompted have existing files overwritten:

IMPORTANT NOTE: There are two files that mustn't be overwrited to update 1.1.x versions; chrome.dll and chrome.xpt. This is because chrome format in 1.1.x version is diferent to Seamonkey/K-M 1.0.2 versions chrome format. If you overwritted this files K-Meleon will crashed to start or no web page will be loaded (only a blank page will be showed).

All *.dll files in the main directory (where seamonkey.exe resides). This is the quick and easy path for updating, a better alternative would be to just copy the same files that can be found in the K-Meleon directory. This can be accomplished with "xcopy", i.e.; xcopy C:\Seamonkey\*.* %programfiles%\K-Meleon\ /U /Q /Y

Once you have copied the folders and files across, go to the K-Meleon\components folder, and delete (don't worry this files will be generated automatically in next K-Meleon start) compreg.dat and xpti.dat. You need to do this in order for the Gecko update to work correctly.

Share your Gecko update

After you test your Gecko update and if this work properly you can share it with K-Meleon comunity make an install with needed files updated and upload to your web server or any storage online server and post it in K-Meleon Forum.

This is an example code to generate a simple installer to Gecko update with NSIS 2.x. Also is recommended to use HM NIS EDIT to edit and compile .nsi files easily. Save next code in a file named kmGecko_up181_13.nsi (for example).