Gaston
Posts: 4
Joined: Tue Aug 02, 2005 1:37 am

Register DCOM

Hi,

I need to register an DCOM (.exe) component before a windows service starts.

I need to config the DCOM privileges from the installer, too.

Can someone help me, please?.... What can I do?

Gaston.
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi Gaston,

Unfortunately, for the time being, Advanced Installer doesn't support COM registration. This feature will be implemented in a future release.

However, you could use a custom action to register and configure your DCOM component.

All the best,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
Gaston
Posts: 4
Joined: Tue Aug 02, 2005 1:37 am

Ciprian,

Thanks, I did it...

Advanced installer register and starts a windows service.

I register a COM (exe) component using a custom action.
I did the following:

1) "New installer custom action".
2) I select the "exe" component.
3) I add "/regserver" in the command line option.

Is this Ok?

I need to do it before advanced installer starts a windows services.

Where do I do it (Uninstall, Rollbak, Install)?

Thanks in advanced,
Gaston.
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi Gaston,

In order for your custom action to be executed before the services are started you could place your custom action under "InstallServices".

Here is how it could be done. In the "Custom Action" page use the [ Show Standard Action ] tool bar button to select "Before Finalization"->"InstallServices". A new branch called "InstallServices" will appear in the "Install Sequence" tree. Place your custom action under it.

Regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
Gaston
Posts: 4
Joined: Tue Aug 02, 2005 1:37 am

Hi, Ciprian

I did it, but it does not work. It seems that Advanced Installer tries to execute the custom action before copying the program's files.

I need that the Advanced Installer do the following steps:

1) Copy the program's files to destination folder.
2) Register a COM component with a custom action.
3) Start a windows service.

I don't know how to do the 2 step. Can you help me, please?

Thanks,
Gaston.
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Hi Gaston,

The custom action is not executed because at the time it is scheduled, the files are not present in the destination folder.

You could set the custom action to be executed as "Deffered". It will run without any problems, but I don't know if the services will be started correctly.

For more information on this topic please visit:
http://msdn.microsoft.com/library/defau ... ctions.asp

Regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
Gaston
Posts: 4
Joined: Tue Aug 02, 2005 1:37 am

Ciprian,

It works fine !!!!... thank you very much :)

Gaston.

Return to “Common Problems”