Missing "Action Data" field for Custom Action in "UI CA" - 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!

Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Missing "Action Data" field for Custom Action in "UI CA"

Using AI 7.7:
If I try to create a Custom action of type "New Attached Custom Action" that uses AdvancedInstaller aicustact.dll and Function: "CreateExeProcess" for example, then the "Action Data" which I should put the executable that I want to run is missing!
This is true for "UI Custom Actions" (not for "InstallExecuteSequence").

This looks like a bug. The workaround for me is to use the "Launch File of URL", but then I can't hide my screen (like it's possible with "CreateExeProcess" using AdvancedInstaller aicustact.dll).

Dashut.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Missing "Action Data" field for Custom Action in "UI CA"

Hi Dashut,

This is not a bug. The UI Custom Actions do not have an Action Data field. This is by Windows Installer's design.
To work around it, simply create a SetProperty event on the control on which you are invoking your custom action. Make sure the SetProperty event is placed before your DoAction event invoking your executable. The SetProperty event would set the CustomActionData property to the appropriate data which can then be used by the CreateExeProcess custom action to invoke your executable.

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

Return to “Common Problems”