PDA

View Full Version : How are .exe files registered?


ambalboa
07-02-2007, 04:50 PM
I am compiling a file using 'Make VB6' action step, which would create an .exe file. I would then need to register it, but how? Currently, I am registering .dll files with a 'Run Program' action step with the following line:

%DOSCMD% regsvr32 /s "%WINSYSDIR%\filename.dll"

I don't think I repeat this for an .exe file. I'm supposed to use the /regserver and /unregserver options, but how would I do that with a 'Run Program' step, or would I use another?

P.S.: I pressed the enter key accidentally, which posted my message without me finishing. Sorry.

kinook
07-02-2007, 04:54 PM
If it's an out-of-process COM server, use the COM Register (http://www.visualbuild.com/Manual/comregister.htm) action.

ambalboa
07-02-2007, 05:37 PM
Thank you. I think I got it working with the 'COM Register' action step. I just placed the filename in the appropriate textbox, checked the 'Unregister the component, assembly, type library, or action' to use the /unregserver flag (to unregister), and then unchecked it for /regserver (to register). Nothing else needed, it seems.

kinook
07-02-2007, 05:42 PM
You can also use the COM Register action for COM DLLs and OCXs. See the VStudio.bld sample. And when calling regsvr32, you don't have to prefix with %DOSCMD%.