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.
EXEC, one named
WEBSITEand the last named
EXECdirectory (usually this is just the DLL).
WEBSITEdirectories to allow the
REGSVR32.EXEto register the DLL within the
WEBSITEfolder 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.
EXECdirectory to the
PATHenvironment variable and add the full path to each
JARfile to the
GRENDEL, I download
LAFmessage-0.0.16.0-binaries.zipfrom the LAFmessage package to my desktop,
Readpermission to the
D:\PUB\SITES\COMPONENTS\LAFMESSAGE\WEBSITE. (I ignore the
LAFMAILsubdirectory because I do not intend to use LAFmail.)
C:\WINNT\SYSTEM32) to try to register
D:\PUB\SITES\COMPONENTS\LAFMESSAGE\EXEC\LAFMESSAGE.DLLbut it fails because I did not install the Microsoft Visual Studio 6.0 Runtime.
C:\WINNT\SYSTEM32) to register
D:\PUB\SITES\COMPONENTS\LAFMESSAGE\EXEC\LAFMESSAGE.DLL. It works this time.
www.grendelcorp.com. I name the virtual directory
LAFmessageand target it at the directory
D:\PUB\SITES\COMPONENTS\LAFMESSAGE\WEBSITE. Because it only contains one text file, I do not give it
PATHenvironment variable and I add
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.