Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-02-2007, 04:50 PM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
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.

Last edited by ambalboa; 07-02-2007 at 04:56 PM.
Reply With Quote
  #2  
Old 07-02-2007, 04:54 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
If it's an out-of-process COM server, use the COM Register action.
Reply With Quote
  #3  
Old 07-02-2007, 05:37 PM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
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.
Reply With Quote
  #4  
Old 07-02-2007, 05:42 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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%.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 04:55 PM.


Copyright © 1999-2023 Kinook Software, Inc.