When redistributing the release Webster Pro Control as part of your product, you also need to include the redistributable support files in your setup kit. The redistributable files for the 32-bit controls are in a folder named redist32 in your Webster installation directory and the 16-bit redistributable files are in redist16.
From your setup program, you should install the redistributable files in the Windows system directory on the end-user's machine. Obtain the name of the Windows system directory by calling the GetSystemDirectory Windows API.
If any of the redistributable files are already present on the user's machine, compare their version resources against the copies you are installing. Only re-install a file if your copy has a higher version number than the copy that is already installed.
The Webster Pro distribution packages install all of the files noted below into your Windows system directory (unless newer versions are already present) except for the control itself, which is installed to the directory you select during setup.
These files are required for the 32-bit Webster Pro Control S-Type:
OLEPRO32.DLL *
OLEAUT32.DLL *
WEBPRO2.OCX *
Files marked with '*' require registration. Most setup program generators support self-registration of DLLs, or you can register the control directly using the LoadLibrary Windows API to load the DLL or OCX, then use GetProcAddress to obtain the address of the "DllRegisterServer" function, and then call that function.
You can also use REGSVR32.EXE to perform the necessary registration tasks. Just pass the complete path and filename of the DLL or OCX as an argument to REGSVR32.
These files are required for the 32-bit Webster Control D-Type:
MFC42.DLL *
MSVCRT.DLL
OLEPRO32.DLL *
OLEAUT32.DLL *
WEBPR332.OCX *
Files marked with '*' require registration. Most setup program generators support self-registration of DLLs, or you can register the control directly using the LoadLibrary Windows API to load the DLL or OCX, then use GetProcAddress to obtain the address of the "DllRegisterServer" function, and then call that function.
You can also use REGSVR32.EXE to perform the necessary registration tasks. Just pass the complete path and filename of the DLL or OCX as an argument to REGSVR32.
These files are required for the 16-bit Webster Pro Control:
COMPOBJ.DLL
OLE2.DLL
OLE2PROX.DLL
OLE2DISP.DLL
OLE2NLS.DLL
OLE2CONV.DLL
OLE2.REG **
STDOLE.TLB
STORAGE.DLL
TYPELIB.DLL
OC25.DLL *
WEBPR316.OCX *
Files marked with '*' require registration. Most setup program generators support self-registration of DLLs, or you can register the control directly using the LoadLibrary Windows API to load the DLL or OCX, then use GetProcAddress to obtain the address of the "DllRegisterServer" function, and then call that function.
You can also use REGSVR.EXE to perform the necessary registration tasks. Just pass the complete path and filename of the DLL or OCX as an argument to REGSVR.
** OLE2.REG should be registered using the command line "REGEDIT/S %SYS%\OLE2.REG", substituting the Windows system directory for %SYS%.