Click to See Complete Forum and Search --> : Seriously Desperate. Registering a DLL via VB
Talking
May 21st, 1999, 01:16 PM
My app, put together with VB5 SetupWiz, has to register a third-party DLL. It installs OK but doesn't register the dll, even though the setup.lst line contains $(DLLSelfRegister). The dll is supposed to be self registering and MS tell me it should have an Export Table when looked at in Quick View (it hasn't). Is there a quick way for my app to register dlls, or do I have to modify setup1.frm with CreateRegKey etc.
Voice Recognition, Microphones, and Text-To-Speech.
Products, Support, and International Sales.
Ravi Kiran
May 26th, 1999, 12:22 AM
Hi,
If the dll is a ActiveX component(dll) then you can use regsvr32. something like:
shell("regsvr32 YourDLL.dll") . You can find regsvr32 program somewhere.( VB/VC CDs or MSDN)
This is what the setup program is also supposed to be doing, anyway!!
Another way to do it: Put all the info, as to where it is supposed to go, in a INI file and use regini INIFILENAME.ini to load all of it in one go into the registry. This ini file should follow a perticular style. This method is followed usually to install (device) Drivers. For general usage(activex exe/dlls) this procedure is quite combursome, as it involves editing/updating under quite-a-few registry keys. Advice: This is **** powerful method, and you could end up with inconsistencies in the registry entries
If no export table is found, it is probably not a activex dll. in which case you dont need to register at all. Could you check?
Ravi
Wooi Loon
May 26th, 1999, 11:52 PM
I agree with using RegSvr32 but only use the latest version. There are various versions of the RegSvr32.exe (primarily located at the Visual Studio folder). Do a find at the file system.
In addition, write a batch file to run at the end of the installation.
Hope this helps.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.