lookandfeel new media free software lookandfeel Free Software -- Installing DLLs

The following is a synopsis of how lookandfeel installs COM DLLs on production servers. This is not necessarily The Right Way to do it, nor is it The Only Way to do it but it works well and is easy to maintain.

  1. Install any missing dependencies.
  2. Create a subdirectory for the package somewhere in the vicinity of the website files but not under a website root. If possible, use D:\PUB\SITES\COMPONENTS\packagename.
  3. Create three subdirectories within the package directory, one named EXEC, one named WEBSITE and the last named JNI.
  4. Copy all the executable files into the EXEC directory (usually this is just the DLL).
  5. Copy all of the web-usable files into the WEBSITE directory (any _VBS.TXT and ASP files).
  6. Copy all of the JNI-related files into the JNI directory (any JAR files).
  7. Set the NTFS permissions (if applicable) on the EXEC and WEBSITE directories to allow the SYSTEM and anonymous IUSR_machinename users Read access.
  8. Delete all other copies of the package files from the server, leaving only the one you just moved into place. Important: this includes old versions and temporary directories.
  9. Use REGSVR32.EXE to register the DLL within the EXEC directory.
  10. In the MMC, add a virtual directory to the root of each website that needs access to the web-usable files for the package, using the name of the package as the name of the virtual directory. Grant the virtual directory "Execute" permission if there are ASP files in the WEBSITE folder that the site will use. The virtual directory does not need to be an IIS application, nor does it need to run in a separate memory space.
  11. To allow Java applications to find the component, add the EXEC directory to the PATH environment variable and add the full path to each JAR file to the CLASSPATH environment variable.

For example:

That's it!

There are a few advantages to installing the components this way. First and foremost, by being very careful to only have one copy of the package's files on the server, upgrading to a later version is much easier. If many copies get scattered around, the system administrator has to find every copy on the machine and replace it with the later version. Also, since COM tends to get strange when multiple copies of registered DLLs are floating around, keeping only one copy on the server helps reduce the troubleshooting work later.

Second, by maintaining a consistant process for installing components, it's much easier to determine what components are available and find their versions without having to search the registry.

IMPORTANT NOTES:


©2001,2002 lookandfeel new media