marceloavf
Posts: 10
Joined: Mon Jan 15, 2018 11:05 am

Open website instead of file in view readme

Wed Aug 08, 2018 5:51 pm

Hello everyone!

After the installation finishes, it shows a dialog with "Run app" and "View readme" option.
The View Readme option need a file to show the readme, but I was wondering if I can make it open a website, is that possible?

Image

Thanks!

Catalin
Posts: 6543
Joined: Wed Jun 13, 2018 7:49 am

Re: Open website instead of file in view readme

Thu Aug 09, 2018 9:19 am

Hello,

Unfortunately, our predefined support for "View ReadMe" button can only open files. However, what you want to achieve is possible. In order to achieve this, we will use a "Push Button" control on the exit dialog, and when that button is pushed, we will trigger an "OpenUrl" custom action.

Here is a step-by-step which will help you implement those said above:

1) First, we will add an "OpenUrl" custom action without sequence. To do so, you can go to "Custom Actions" page from the "Custom Behavior" group and add an "OpenUrl". Upon clicking on the custom action, you will see two buttons placed to the right side of the custom action name. Click on the "Add custom action without sequence". In the "URL" field, insert the website which you want to open upon triggering this custom action.

2) Now we will create the button which will trigger the custom action. To do so, go to "Dialogs" page, select the "ExitDialog" and press the "Control Toolbox" button from the toolbar. Place the push button on your dialog. Now click on the push button and, under "Published Events" tab, click the "New..." button and insert the following:

-Event: Execute Custom Action
-Argument: OpenUrl (the name of the earlier created custom action)
-Condition: Left unchanged (the default condition is AI_INSTALL)

Also, upon clicking on the push button, a "Properties" pane will appear on the right side. There you can configure your push button. For example, you can change the text it displays to "View ReadMe"

Let me know if this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

marceloavf
Posts: 10
Joined: Mon Jan 15, 2018 11:05 am

Re: Open website instead of file in view readme

Thu Aug 09, 2018 12:17 pm

Catalin wrote:Hello,

Unfortunately, our predefined support for "View ReadMe" button can only open files. However, what you want to achieve is possible. In order to achieve this, we will use a "Push Button" control on the exit dialog, and when that button is pushed, we will trigger an "OpenUrl" custom action.

Here is a step-by-step which will help you implement those said above:

1) First, we will add an "OpenUrl" custom action without sequence. To do so, you can go to "Custom Actions" page from the "Custom Behavior" group and add an "OpenUrl". Upon clicking on the custom action, you will see two buttons placed to the right side of the custom action name. Click on the "Add custom action without sequence". In the "URL" field, insert the website which you want to open upon triggering this custom action.

2) Now we will create the button which will trigger the custom action. To do so, go to "Dialogs" page, select the "ExitDialog" and press the "Control Toolbox" button from the toolbar. Place the push button on your dialog. Now click on the push button and, under "Published Events" tab, click the "New..." button and insert the following:

-Event: Execute Custom Action
-Argument: OpenUrl (the name of the earlier created custom action)
-Condition: Left unchanged (the default condition is AI_INSTALL)

Also, upon clicking on the push button, a "Properties" pane will appear on the right side. There you can configure your push button. For example, you can change the text it displays to "View ReadMe"

Let me know if this helps!

Regards,
Catalin
Awesome solution Catalin,

Thank you!

Catalin
Posts: 6543
Joined: Wed Jun 13, 2018 7:49 am

Re: Open website instead of file in view readme

Thu Aug 09, 2018 12:47 pm

You're always welcome!

I am glad you got this working!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”