sumit1
Posts: 18
Joined: Thu Nov 29, 2018 3:40 pm

Hyperlink for pre-install UI dialog

Tue Dec 11, 2018 12:32 pm

Hi

we are added hyperlink in pre-install UI dialog add url and property name but when we are click on this hyperlink specific file does not open.

URL: file://[AI_SETUPINTELLISYSENVIRONMENT_SQLSERVE]
Property Name:HYPERLINK_1_PROP_1_2
Hyperlink Name: Hyperlink_1

This URL pattern not worked.PDF file available in temp folder

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

Re: Hyperlink for pre-install UI dialog

Wed Dec 12, 2018 11:02 am

Hello and welcome to our forums,

Unlike Advanced Installer's regular files or resources, "Temporary Files" are copied on the target machine at the beginning of the installation and are deleted at the end of it, ensuring you have access to them throughout the entire install process.

Temporary Files are copied during the CostFinalize standard action, at the beginning of the setup and removed during the InstallFinalize standard action.

Now, Pre-Install prerequisites are additional packages that are installed before the MSI is launched. The pre-install prerequisite and the main package are two different processes.

In your scenario, you are trying to access a file that extracted to the temporary folder before it is actually extracted, leading in you being unable to open the file.

In order to make this work, simply move your hyperlink control on a dialog from your main package (e.g. "WelcomeDlg" from under the "FIrst Time Install").

The solution above should work, because the "CostFinalize" standard action takes place before the "WelcomeDlg" is displayed, so, when you will try to access the PDF file, it will be present on the machine (in the %temp% folder)

Hope this helps.

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

sumit1
Posts: 18
Joined: Thu Nov 29, 2018 3:40 pm

Re: Hyperlink for pre-install UI dialog

Thu Dec 13, 2018 5:41 am

Thank you Catalin.

But is there any way/alternate solutions to add hyperlink in Pre-Install prerequisites.
Because in prerequisite we want to add hyperlinks.
All FIrst Time Install hyperlinks work fine there is no any issues.

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

Re: Hyperlink for pre-install UI dialog

Thu Dec 13, 2018 11:30 am

Hello Sumit,

I am afraid that it is not possible to achieve what you want, because your PDF file is extracted way after you are trying to launch it.

However, I think there may be a workaround for this. For instance, you can convert your PDF file to a RTF file and then use a "Scrollable" control on your dialog. After adding the "Scrollable" control to your dialog, select it and, on the right pane, under "Display" --> "RTF File" field, pick your RTF file by pressing the "..." button.

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

sumit1
Posts: 18
Joined: Thu Nov 29, 2018 3:40 pm

Re: Hyperlink for pre-install UI dialog

Thu Dec 20, 2018 2:11 pm

Thank you Catalin.

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

Re: Hyperlink for pre-install UI dialog

Thu Dec 20, 2018 2:47 pm

You are always welcome, Sumit.

I am glad I could help.

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

Return to “Feature Requests”