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!

xrkxs
Posts: 13
Joined: Wed Oct 17, 2007 4:33 pm

Cannot configure CustomActions

I have multiple MergeModules with CustomActions running either .VBS script or commandline executeables.
Those CustomActions need to be configurable from the host .MSI at run-time. Because they cannot be configured directly as far as I know with AI-6.2 I have used Configured Properties in the MergeModules as a workaround to indirectly 'configure' the CustomActions.

The problem is that my configuration parameters in the host .MSI are ALSO properties and they will be filled in by the end-user at install time. And because the Value of a Property inside the MergeModule is NOT a formatted field I will get the [propertyname] plaintext from the main installer rather then the value of the property merged into my MergeModules.

Is there a way to configure the CustomActions inside my mergeModules?

With other Installer tools I have used directly editing the ModuleSubstitution table to get this done, but there is no dircet editor inside AI-6.2

Regards,
Martein
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Cannot configure CustomActions

Hi,
Because they cannot be configured directly as far as I know with AI-6.2 I have used Configured Properties in the MergeModules as a workaround to indirectly 'configure' the CustomActions.
Please note that you can use the properties in the merge module directly in the main project. However, these properties must use this format:

Code: Select all

PROPERTY.GUID
where "GUID" is the Merge Module's GUID. It can be found in the "Module Details" page in your merge module project or it can be retrieved by opening the MSM file with Orca (the elements inside the merge module are followed by ".GUID").

For example, in a custom dialog of the main package you can set the property TEST.2C796376_CF4C_4B5C_8B3B_07008F4AE840, where TEST is a property in the merge module with the GUID set to 2C796376_CF4C_4B5C_8B3B_07008F4AE840. Note that the merge module must be included in the main project in order to have access to its properties.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xrkxs
Posts: 13
Joined: Wed Oct 17, 2007 4:33 pm

Re: Cannot configure CustomActions

Hi Cosmin,

I am afraid that I cannot use your workaround. This would break the existing interface I offer with my MergeModules and would put the burden on my end customers who author the main package to get it working.

I will have to add some additional scripting to my build process to insert the missing rows in the .MSM ModuseSubstitution table after it is compiled by AI-6.x for now as a workaround.

I do hope that full configuration of CusomActions will be supported in a future release of AI as this is just existing MSI functionality that should be unleashed! With full support I mean the abillity to have the CustomAction target be a string consisting of a combination of plain text and substitution parameters.

Best regards,
Martein
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Cannot configure CustomActions

Hi,
I am afraid that I cannot use your workaround. This would break the existing interface I offer with my MergeModules and would put the burden on my end customers who author the main package to get it working.
Please note that this is not a workaround, it is the recommended way to use the properties in a merge module. Also, this approach uses the standard naming convention recommended by Microsoft for merge modules.
With full support I mean the abillity to have the CustomAction target be a string consisting of a combination of plain text and substitution parameters.
We will consider including this feature in a future version of Advanced Installer. Thank you for your suggestion.

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

Return to “Common Problems”