These files are used to register you program with the Registration Database. The problem is that the files are not needed! When you compile your OLE server, VB compiles code into it that will do this for you! The problem is that MS does not make this easy for you to find. Because the want you to use the Setup Wizard (anyone that knows me, knows how I feel about the Setup Wizard).
To register your program, simply run your server with the following command line parameter.
MYOLESVR.EXE /REGSERVER
Your program won’t start, it will just register itself. Just make sure you do this after all the runtime files have been installed. You can also un-register your server by using the /UNREGSERVER parameter.
Tip By: David McCarter
Discover more from dotNetTips.com
Subscribe to get the latest posts sent to your email.
