Tester

Registering EXE activeX

The setup returns an error when registering executable COM objects :
error 0x8007007F

Therefore, there is no error when registering COM DLL.

Is this a bug ? Does the setup really call "EXEname /RegServer" ?
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Please give some more details: file name, expected registration procedure, actual registration procedure, etc.

I am not sure I understand you correctly: does it work when registering DLLs or not?

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

Registering DLLs works fine.
It's only when I try to register EXE that I get an "error 0x8007007F" message box from the setup.

It seems that the installer doesn't run the right command, that should be "MyCOMobject.exe /RegServer".

In fact it seems that the installer try to launch a command similar to "regsvr32.exe MyCOMobject".

I hope I answered your questions.
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

I see.

You are right, the self-registration of DLLs in Windows Installer only supports the regsvr32.exe model. For the "MyCOMobject.exe /RegServer" you need two custom actions, one at install for registration and one at uninstall for unregistration.

The Custom Action support will be added to Advanced Installer in the next version (1.2).

BTW, Windows Installer strongly recommands against using self-registration. Placing the registry keys in the Registry Table is suggested instead.

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

Thank you for your quick answer.
I will try to add the registry keys myself, using the Registry Table.
New User

EXE Self-Registration v1.2

Was this feature added to v1.2? If not, how would you add the information into the registry? :?:
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

No, it will be in 1.3 instead. To add registry entries simply go to the Registry Page in Advanced Installer, and use the New Key, New Value and Add Values buttons.
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mavmh
Posts: 2
Joined: Tue Jan 06, 2004 4:39 pm

Just to verify

Was this in fact added to 1.3?
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Yes, custom actions are implemented in 1.3
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
srm2710
Posts: 13
Joined: Thu Feb 09, 2006 6:01 pm

i am also registering activeX exe

Microsoft's KB article: http://support.microsoft.com/kb/297279 states:

"If you use the Package and Deployment Wizard or the Application Setup Wizard to distribute your ActiveX EXE, the EXE is registered automatically during application installation."

Does advanced installer offer this now? I am a paid up user, with latest version, but cannot see an option for this. I do not wish to manually add all the registry keys as my exe has a number of classes.

Can you offer an example of this simple task?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Have you tried to register your file by using the "Auto register file" option from "Edit File" dialog, "Properties" tab?

For more details please see:
http://www.advancedinstaller.com/user-g ... ialog.html

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
srm2710
Posts: 13
Joined: Thu Feb 09, 2006 6:01 pm

yes, i get: "The selected file could not be registered". I had assumed that this is because it is an activeX exe and not an OCX/DLL.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can use an "Installed Custom Action" scheduled under the "Install" stage to register the EXE. Set the following properties for this Custom Action:

- Command Line: /RegServer
- Execution Properties: "Synchronous Execution, ignore return code"
- Execution Options: "Deferred"
- Execution Condition: (Not Installed)

http://www.advancedinstaller.com/user-g ... -page.html

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
ACarpenter@msn.com
Posts: 15
Joined: Sat Aug 11, 2007 12:59 am

Re: Registering EXE activeX

Can you please be more specific WHERE Exactly you create this custom action:

"Installed Custom Action" is NOT an option from anywhere I can find on the Custom Actions Screen, nor from the Wizard or anywhere else in the program that I can find.

Thank you
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Registering EXE activeX

Hi,

This custom action can be scheduled under the "InstallExecuteSequence" -> "Install" standard action in the Custom Actions page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”