phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

.Net InstallerClass in Merge Module

Hi

I’m having a setup using merge modules. In one of the merge modules, I have to use a .Net InstallerClass as Custom action (called on the Install and Commit step).
Installing our software with the corresponding module works fine.
But when I’m running a custom installation (not installing the module with the .Net-Installer-Class), the setup is performing rollback. According to the installation log, there was an error while executing my installer class.
Now I’m a bit confused…
Are custom action always executed, even if their module isn’t installed?
Are there any known problems when executing a .Net Installer Class in a Merge Module, which isn’t installed?
Do you know any “clean” workaround to make the custom action only running, when it’s Merge module is installed?

By the way: I’m sure, that the code of my InstallerClass isn’t the problem (I’ve tested it).
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: .Net InstallerClass in Merge Module

Hi,
Are custom action always executed, even if their module isn’t installed?
Custom actions are executed based on their execution condition, it does not depend if they are a part of an MSM file or not.

A solution that you can try is to append to your current execution condition and a "Component Action", related to one of the components from the merge module.
This should trigger the custom action to be executed only if the component is installed.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: .Net InstallerClass in Merge Module

Okay, I'll try this.

Thanks for your quick replay.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: .Net InstallerClass in Merge Module

Always a pleasure.

Best of all,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”