PDA

View Full Version : ActiveX EXE register


minsis
06-19-2009, 01:03 PM
Hi, I'd like to know if someone can tell me how could I register an ActiveX EXE during (or after) the installing process.
I need to use the registerserver command, instead the classic regsvr32.

Thanks in advance.
Regards.
Minsis :)

jassing
06-19-2009, 09:45 PM
the easist way to to use the file properties/advance and make sure "register com interace" is checked off.

HOWEVER, if that dll or ocx needs another file you installed you need to use the install-order property to control the order of install.

another way to do it is via the
System.RegisterActiveX()
in your "post install" process.

minsis
06-20-2009, 07:19 PM
Hi jassing, thank you for your reply.
The problem is that the component is an ActiveX EXE (VB6), so I'm not sure if I can use RegisterActiveX() because I need my component to be registered by REGSERVER command instead regsvr32.
Anyway, I will try and let you know about it.

Thanks!

Minsis

jassing
06-20-2009, 08:49 PM
I'm soooo SorrY! I missed that it was an exe.

After you install the files, just issue
File.Run(SessionVar.Expand("%AppFolder%\\MyCOMSERVER.EXE"),"/regserver", "",-1, false);

minsis
06-21-2009, 05:57 PM
THANKS A LOT!!!
I will try that, and let you know.

Minsis :yes

kamachi
06-29-2009, 10:45 AM
the easist way to to use the file properties/advance and make sure "register com interace" is checked off.

HOWEVER, if that dll or ocx needs another file you installed you need to use the install-order property to control the order of install.

another way to do it is via the
System.RegisterActiveX()
in your "post install" process.

How can I use the install-order property? Thanks.

jassing
06-29-2009, 10:50 AM
set the attribute?
Open file properties, click the advanced tab, install order is at the bottom.

All files are set to 1000 by default; lower number installs earlier than higher #'s.

minsis
06-30-2009, 08:50 AM
Jassing, the solution you proposed about the ActiveX EXE, worked perfectly fine!
Thank you for all your help.

Minsis. ;)