Archive: Link in welcome page


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.


The is no standard setting available, you can write to InstallOptions INI file of the page (ioSpecial.ini) in the pre function.


Hi,

I'm not quit sure what you mean, but I tried the following:

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?

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).


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

Use the pre function, not the init function.


The PRE function also does not work:


!define MUI_PAGE_CUSTOMFUNCTION_PRE prepWelcome