Skip to content
⌘ NSIS Forum Archive

NSD_CreateLink - what to put in Function?

4 posts

xbarns#

NSD_CreateLink - what to put in Function?

Hi all,

i use nsDialogs to put a link into a custom page it looks like this

${NSD_CreateLink} 10 120 100% 12 $(RetrieveLicence_Link)
Var /GLOBAL LINK
Pop $LINK
${NSD_OnClick} $LINK onClickMyLink 
What do i have to put in onClickMyLink so the link actually gets opened ? I tried the forum but have not found an example.

Also can i "mask" the actual link by something like "Please click here" ??

Thanks.
{_trueparuex^}#
You can put whatever you want in the function, but in this case... E.g:
Function onClickMyLink
Pop $0 ; don't forget to pop HWND of the stack

ExecShell "open" "http://nsis.sf.net/"

FunctionEnd
And yes you can use any text for the link control.
sr164w#
Hii

Could any1 please let me know how to refresh the link on the same page

like, how to reflect the changed value of the drop down in the ${NSD_CreateLink} link text.