COM+ and Repair - 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!

ViktarT
Posts: 9
Joined: Tue Sep 29, 2009 10:20 am

COM+ and Repair

Hi
I'm try to make setup with COM+ component registration. I've imported component MSI on the COM page.
Install and uninstall works fine. But when I try to Repair installation, error occurs "Error registering COM+ Application" and whole installation rolled back. Log says: RegisterComPlus. Registering COM+ Applications and Components Info 2945. Installation of ComPlus App ... failed with error -2146368511.

This error occurs because component is registered already. Is there a way to avoid this error?

My test project is in attach.
Attachments
test2.zip
test project
(190.7 KiB) Downloaded 449 times
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: COM+ and Repair

Hello,

You must condition the RegisterComPlus standard action not to run during a repair. Try condition it using the following condition:

Code: Select all

Installed AND (NOT REMOVE = "ALL")
Let me know if it helped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ViktarT
Posts: 9
Joined: Tue Sep 29, 2009 10:20 am

Re: COM+ and Repair

Thanks Gabriel, but with your solution repair will not fix problems with COM+ components if they will appear. I mean if there is a problem with COM+ and I run repair to fix it, it will not because RegisterComPlus action will not run during repair.

Am I right? May be there is another solution?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: COM+ and Repair

Hello,

You are right. It appears for some reason that the standard action does not handle the COM+ repair properly, so not doing the repair seems a sensitive solution. Perhaps using a command line tool as a custom action to register the COM+ would be your best choice. Not sure if it will work though, but it's worth a try.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”