Skip to content
⌘ NSIS Forum Archive

Link in welcome page

7 posts

FuchsC#

Link in welcome page

Hi,

is it possible to place a hyperlink to any webpage in the welcome page of the installer, like it is in the finish page.
Joost Verburg#
The is no standard setting available, you can write to InstallOptions INI file of the page (ioSpecial.ini) in the pre function.
FuchsC#
Hi,

I'm not quit sure what you mean, but I tried the following:
  • I created my own ini file for the welcome page, which is ioSpecial.ini + a fourth field which is of type link:

    [Field 4]
    Type=link
    Left=120
    Right=315
    Top=100
  • I include this ini file:

    !define MUI_WELCOMEFINISHPAGE_INI welcome.ini
  • I created a custom function, which is called before the macro:

    !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Top" "100"
    !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" "http://temppo.siemens.at"
    !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" "TEMPPO"

The problem is, I still don't see any link! I did several test and I'm sure, that my ini file is used and that the pre function is called.
Any ideas?
Joost Verburg#
It's easier not to use your own INI file but to write to ioSpecial.ini in the pre-function. You will have to increase the number of fields and add an extra field (number 4).
FuchsC#
I don't get it. Here is my script, which still show no link on the welcome page:

!include "MUI.nsh"

Name "Welcome Tester"
OutFile "welcome.exe"

!define MUI_WELCOMEFINISHPAGE_CUSTOMFUNCTION_INIT prepWelcome
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_LANGUAGE "English"

Section "Dummy Section" SecDummy
SectionEnd

Function prepWelcome
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "NumFields" "4"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Type" "link"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Left" "120"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Right" "315"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Top" "100"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" "http://www.nullsoft.com/free/nsis/"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" "Nullsoft SuperPiMP Install SYSTEM"
FunctionEnd