Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   How are .exe files registered? (https://www.kinook.com/Forum/showthread.php?t=2760)

ambalboa 07-02-2007 04:50 PM

How are .exe files registered?
 
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 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%.


All times are GMT -5. The time now is 12:56 PM.


Copyright © 1999-2023 Kinook Software, Inc.