COM+ and DCOM questions (New to AI) - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

leonardg
Posts: 1
Joined: Wed May 28, 2008 7:32 pm

COM+ and DCOM questions (New to AI)

Hi all,

I'm a new guy to Advanced Installer, I was used to WISE Installer. I can say that on many points, AI seems much better but I'm having an hard time with COM+ and DCOM. Maybe you can help me setting them up ?

COM+ :

The only way I managed to get a COM+ installed and registered in the setup was to Import an MSI with the COM+. Basically, I export the installed COM+ from my server to an MSI file and then import it into AI. This is not really a problem, it's just pretty long. Anyway, I was wondering if there was a way to change the name of the COM+ in AI. Let's say that my COM+ is named Test.dll, as well as the MSI, but after importing, the String into AI will be AppID with the GUID. Since this is probably only a reference, could I edit the name somewhere ? Or is there any other way to add a COM+ ? I tried adding the DLL itself into AI, but got an Invalid Character error while trying to install the setup.

Also, in WISE, I was able to add a COM+ and select if I wanted it to be either Client or Server and include a Server name in the case that the COM+ was a client. I noticed that after importing the MSI, a registry key for Remote Server was created in AI under AppID for the imported WSI. But, is it possible to do it via AI Interface or do I need to modify registries ?


DCOM :

In our entreprise, we use Delphi to develop. As a matter of fact, in order to register a DCOM, we use launch the .EXE associated with the DCOM we need to register and add /regserver as parameter. As exemple, test.exe /regserver would register all necessary DCOM for test.exe to work fine. I searched a bit and found out on another thread here that if I edit the properties file test.exe in AI (section Files and Folders), enabling Auto Register File should install the DCOM...but it doesn't. After enabling the check box, I try to choose 1 of the 3 methods to register the DCOM (Self register, Extract registration or Register .Net) and all of them give me a "The selected file could not be registered" error. The only workaround I found is to add a custom action where we call the test.exe and gives /regserver in parameter. Is there a way to get the Auto Register File working ?

Thank you,

Guillaume Leonard
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: COM+ and DCOM questions (New to AI)

Hi Guillaume,
I was wondering if there was a way to change the name of the COM+ in AI. Let's say that my COM+ is named Test.dll, as well as the MSI, but after importing, the String into AI will be AppID with the GUID. Since this is probably only a reference, could I edit the name somewhere ?
Importing a COM+ MSI into AI (by selecting the toolbar button "Import COM+" from the COM page) is the best way to add a COM+ application to your project.

The Complus table used by Windows Installer to store information about COM+ applications contains only 2 columns, namely Component_ and ExpType. The Component column specifies the Component that contains the COM+ application (files, registry entries etc) and it is used in the tree control from the COM page to designate a COM+ application.

Thus, you can rename the corresponding Component in the Organization page, but then you will need to reopen the project in order to see the updated name in the COM page (this will be fixed in a future AI version).
Also, in WISE, I was able to add a COM+ and select if I wanted it to be either Client or Server and include a Server name in the case that the COM+ was a client. I noticed that after importing the MSI, a registry key for Remote Server was created in AI under AppID for the imported WSI. But, is it possible to do it via AI Interface or do I need to modify registries ?
In order to specify the server name, you can change the value of the "REMOTESERVERNAME" Property (created after importing a COM+ MSI) in the Install Parameters page. Or, if the server name is not known until install-time, it can be set via a Custom Action.
Is there a way to get the Auto Register File working ?
The "Auto register file" options can only be used for in-process COM servers (DLL, OCX etc). For out-of-process COM servers (executables) like yours, using a Custom Action that invokes the EXE with the "/regserver" argument is the correct way of registering it.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”