Registering DLL

Registering DLL

Anonymous
Not applicable
258 Views
3 Replies
Message 1 of 4

Registering DLL

Anonymous
Not applicable
Is it possible to register a DLL from VBA code? David Stein shows how to do in lisp on the Visual Lisp Bible, is there a vba sample? Thanks.
0 Likes
259 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
HJohn wrote: > Is it possible to register a DLL from VBA code? David Stein shows > how to do in lisp on the Visual Lisp Bible, is there a vba sample? > Thanks. Just use SHELL and feed the location of your DLL to REGSRVR32.EXE. -- Things never go according to plan. So plan accordingly.
0 Likes
Message 3 of 4

Anonymous
Not applicable
Frank do you have or know where I could find and example to first test to see if the DLL have been registered and if not then register it?
0 Likes
Message 4 of 4

Anonymous
Not applicable
Hi, While this is possible as shown by other replies, surely a better approach would be to use an installation program to install your program on another computer. "Inno Setup", which is free, powerful, extremely well supported, and very easy to use can readily register your DLLs as part of the installation process. Watch word wrap on the following sample line which copies a file to the Windows System32 directory and registers it Source: "C:\Installation\_General Install Items\Msflxgrd.ocx"; DestDir: "{sys}"; Flags: RegServer If you can program in Delphi, then you can do literally anything with Inno Setup. I don't have them here, but the Inno Setup.Code Newsgroup has code supplied to me to locate Autodesk products in the registry enabling me to Automatically install the correct DVBs depending on the installed Autodesk software. This makes for very clean installations. -- Laurie Comerford CADApps www.cadapps.com.au "HJohn" wrote in message news:29641472.1089064858144.JavaMail.jive@jiveforum2.autodesk.com... > Is it possible to register a DLL from VBA code? David Stein shows how to do in lisp on the Visual Lisp Bible, is there a vba sample? Thanks.
0 Likes