jfuhr
Posts: 41
Joined: Wed Mar 19, 2008 4:52 pm

Creating a help button

On one of my dialogs, I want to add a help button to provide the user with more information.

I thought I could use the MessageBox custom action, but I can't figure out how to get this to work.

The tutorial says to add the message string to "Action Data", but I do not see this field in the DoAction event.

Here is what I have done so far:

Added messagebox to custom actions.
Added a button to the dialog.
Added a published DoAction event and referenced MessageBox.

After this I'm stuck.

Ideally I would like to open a web page instead of showing a message box, if that is possible.
Eusebiu
Posts: 4960
Joined: Wed Nov 14, 2012 2:04 pm

Re: Creating a help button

Hi,

In order to achieve what you want you can use one of the following solutions:

First:
- go in the Custom Actions page and create a "Display message box" custom action without sequence
- in the "Action Data" text field from the right pane add your message string
- go in the Dialogs page and add a "Push Button" control on the dialog you want
- select the button you added and create a new published event
- in the "New Control Event" dialog choose "Execute custom action" and select your "Display message box" custom action from the "Argument" combo box

Second:
- go in the Dialogs page and add a "Hyperlink" control on the dialog you want
- in the "URL" text field from the "Properties" pane write the link to your help page

Third (this opens a web page when you press a button):
- go in the Custom Actions page and create an "Execute inline script code" custom action without sequence
- in the "Script Text" text field from the right pane add a code like in the example:

Code: Select all

CreateObject("Wscript.Shell").Run("www.mysite.com")
- go in the Dialogs page and add a "Push Button" control on the dialog you want
- select the button you added and create a new published event
- in the "New Control Event" dialog choose "Execute custom action" and select your "Execute inline script code" custom action from the "Argument" combo box

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”