ken

register ocx

I need to run an exe before registering my attached ocx. Is this possible? It tries to register my ocx before running the exe. I can't find a way to reverse this.
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

That is not possible yet. May I suggest registering the OCX in a custom action as well?
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ken

Ok, how exactly would I do this?

1. I add a custom actionon the install.

2. Point the source path to my ocx and the source type to dll.

3. In execution properties what would the function name be? Would I type regsvr32 <filename>.ocx?

Thanks for your help.
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Argh you're right. You can only run installed/attached files in your custom actions. I got confused because we are trying to add this feature to the 1.4 version.

The only way it would work is if you'd create an attached custom action with regsvr32 inside. Not nice I'm afraid...

Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gus2000

It is possible to add a custom action, DLL file and to start the DllRegisterServer function of your OCX : it give the same result as Regsvr32.

Guillaume

Return to “Common Problems”