mozdev.org

HOWTO: Fake Installation of Netscape 4.x

Introduction

Plugin installation programs that haven't been updated to search for Mozilla may attempt to locate Netscape 4.x using one or more of the following methods:

It is possible to create a "fake" installation of Netscape 4.x, which can fool these installers, using the procedure below. Only one fake installation is required per system, and it can be shared between multiple browsers. You will also need to turn on the Netscape 4.x plugin scan for this to work. [More Information...]

The Easy Way

To make things easier, XPInstall packages are available to both install the fake Netscape 4.x installation, and to change the required preferences. Note that these can NOT be installed to user profiles - they are for system-wide installation only.

 WARNING: These packages have not been extensively tested. Do not use them if you have a working Netscape 4.x installation - they will clobber it! Use at your own risk. If you have problems with them, send some feedback.

 Update: This is Revision 3 of the Fake 4.x installer, which adds another registry entry. Updated July 21, 2005.

Opera only: Opera users will need to use the self-extracting package and manually add the "Netscape" plugins path using opera:config. This path will generally be C:\Program Files\Netscape\Communicator\Program\Plugins

The Hard Way

Requirements

Create Directories

Create the following directories (you can change them, but you'll have to change the registry patch too):

Edit Registry

Apply this registry patch after creating the directories listed above (modify if required). Standard disclaimer applies: back up the registry before editing it, and don't blame me if your computer blows up.

Resource Editing

This step involves putting copies of the Mozilla executable and null plugin in the directories created above. It also involves editing the resources in these files so that they return the same version information as Netscape 4.79.

  1. Copy mozilla.exe to C:\Program Files\Netscape\Communicator and rename it to netscape.exe.
  2. Copy npnul32.dll to C:\Program Files\Netscape\Communicator\Program\Plugins.
  3. Open C:\Program Files\Netscape\Communicator\netscape.exe with ResHack, and replace the version information with this version information.
  4. Open C:\Program Files\Netscape\Communicator\Plugins\npnul32.dll with ResHack, and replace the version information with this version information.
  5. Delete the _original files created by ResHack.

Playing with ResHack
Select all, hit delete, paste from text file, compile script, save!

Known Issues

Support

You're pretty much on your own here. You can try the MozillaZine Forums, as with all support questions, but that is about it. If you don't know exactly what this does, I don't suggest using it. If you have a problem with the procedure itself, send some feedback.