Announcement

Collapse
No announcement yet.

Hyperlink in the License Agreement screen

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hyperlink in the License Agreement screen

    Hello,

    I am trying create a demo installer for our company and I can't seem to figure out how to add a hyperlink on the License Agreement setup screen.

    We can the customer to click on the link we provide and that link should take the user to our website to read the Terms and Conditions.

    Is there any way to this in Setup Factory?

    Please help, thank you,
    Cosmin

  • #2
    Please consider this sample HTML code for your license, displayed in a scrolling text control configured as HTML:

    Code:
    Before continuing this installation, you must read and agree to the terms of our End User License Agreement (EULA) located at (<a href="#licensing">your-url-here</a>). If you do not agree, do not install or use this software.
    This is another <a href="#indigo">sample link</a>.
    This HTML uses anchors instead of full URLs. Using anchors will not reload the current document, and yet you can get the notification when the user clicks the link in the control, as you can see in the product documentation: Scrolling Text

    In the On Ctrl Message event script of the screen, you would add some code similar to this to catch the clicks and open the web browser with the desired page:

    Code:
    if (e_MsgID == MSGID_ONNAVIGATE) then
       if (e_Details.URL == "about:blank#licensing") then
          File.OpenURL("[URL]https://masstech.com/legal-disclaimer/[/URL]", SW_SHOWNORMAL);
       end
       if (e_Details.URL == "about:blank#indigo") then
          File.OpenURL("http://www.indigorose.com", SW_SHOWNORMAL);
       end
    end
    Instead of comparing the full link with the full text, you can of course perform a partial string comparison and just look for "#licensing", etc.

    Ulrich

    Comment


    • #3
      Thank you for you help, Ulrich, much appreciated. I was able to create the link to the license agreement webpage.

      Comment

      Working...
      X