Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 4th October 2008, 11:41   #1
kukomamasan
Member
 
Join Date: Mar 2004
Posts: 62
Link Websites at the end of installation.

Hi all,
I wonder how you can add at the finish page of the installer, to show a window of links to urls with descriptions that users meight wanna goto?
i know

Function .onInstSuccess
Messagebox MB_YESNO "Wanna visit Website?" IDYES +2
abort
ExecShell "open" "http://www.somesite.com"
Functionend

will give the option to open 1 link, but if i want to have like 5 link shown on an page ? that users meight wanna visit, how is that done?
kukomamasan is offline   Reply With Quote
Old 4th October 2008, 21:17   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
create a custom page and present the links on that page; either InstallOptions or the new nsdialogs will do the trick.. look into those
Animaether is offline   Reply With Quote
Old 5th October 2008, 09:30   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,167
Send a message via ICQ to Yathosho
you can use
code:
!define MUI_FINISHPAGE_LINK "My webpage"
!define MUI_FINISHPAGE_LINK_LOCATION "http://bla.com"


or
code:
!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_TEXT "My webpage"
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION CallWebpageFunction


the first shows a link, the second a checkbox. both are documented in the MUI docs.
Yathosho is offline   Reply With Quote
Old 5th October 2008, 14:30   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Yathosho - those only allow one single link, however; if you want multiple links, base MUI defines and macros won't do
Animaether is offline   Reply With Quote
Old 5th October 2008, 17:54   #5
kukomamasan
Member
 
Join Date: Mar 2004
Posts: 62
I tried the new nsdialogs, but it only show me the links, was not able to click on them, and then ie would open them ? , it was just in an ordinary text form, not what i wanted.

i read somewhere in the forum, that placing an url in an text box would automactialy be an clickable url, but not in my case?
kukomamasan is offline   Reply With Quote
Old 5th October 2008, 22:41   #6
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 165
assuming you are using a current version of nsis the following will work

code:

Var Link
Var Link2
Var Link3
;--put vars above before your custom nsdialogs page code


;--In your nsdialogs page where you had the text control put somthing like these-----------------
;--Create first Link ----------------------------------
${NSD_CreateLInk} 10 10 213 16 "Visit our website for more info "
Pop $LINK
${NSD_OnClick} $LINK onClickLink ;<--function to execute when link clicked
;-- End Create Link--------------------------------------------------

;--Create second Link ------------------------------------
${NSD_CreateLInk} 10 25 213 16 "Visit our forums for help"
Pop $LINK2
${NSD_OnClick} $LINK2 onClickLink2
;-- End Create Link------------------------------------------------------

;--Create third Link ------------------------------------
${NSD_CreateLInk} 10 40 213 16 "visit our examples page"
Pop $LINK3
${NSD_OnClick} $LINK3 onClickLink3
;-- End Create Link------------------------------------------------------

;--after your custom nsdialogs page function is ALL done put something like these--------------



Function onClickLink
Pop $0
ExecShell "open" "http://nsis.sourceforge.net/Main_Page"
FunctionEnd

Function onClickLink2
Pop $0
ExecShell "open" "http://forums.winamp.com/forumdisplay.php?s=&forumid=65"
FunctionEnd

Function onClickLink3
Pop $0
ExecShell "open" "http://nsis.sourceforge.net/Category:Code_Examples"
FunctionEnd

ZmAn3 is offline   Reply With Quote
Old 7th October 2008, 14:31   #7
kukomamasan
Member
 
Join Date: Mar 2004
Posts: 62
Above Works just like i wanted, thx for the help, and adding descriptions, then a noob like me can figure it out :-).
kukomamasan is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump