spewge
23rd October 2003 04:26 UTC
Clickable link in a message box
I need to place a clickable link (one that points to the .net download Microsoft's website if they don't have the framework installed) on a message box. Or even a button on a message box that when pressed will take the user to a link I specify. Is this possible using NSIS?
All I can do right now is tell them they don't have .net and display the link, which is huge.
Llynix
26th November 2004 08:14 UTC
Re: Clickable link in a message box
Originally posted by spewge
I need to place a clickable link (one that points to the .net download Microsoft's website if they don't have the framework installed) on a message box. Or even a button on a message box that when pressed will take the user to a link I specify. Is this possible using NSIS?
All I can do right now is tell them they don't have .net and display the link, which is huge.
I have exactly this same question.
If anyone could help, please email at
llynix@gmail.com or respond here.
RobGrant
26th November 2004 08:43 UTC
Probably the easiest way is to use a resource hacker to make a custom dialogue, HM NIS Edit has one built in.
You can add a Hyperlink there, I think you put the actual link in the State option, and the text you want displayed in the Text option.
E.g.:
Type=Link
Text=Go to Google!
State=http://www.google.com
Left=318
Right=489
Top=99
Bottom=107
Takhir
26th November 2004 08:48 UTC
1. If you want to install dotnet separately from you installer, use ExecShell NSIS call to point default browser to url. Ask user to re-run your installer after dotnetfx, run ExecShell and exit. You can find samples using forum search.
2. Download dotnetfx inside your installation using NSISdl or my plug-in ( http://forums.winamp.com/showthread....hreadid=198596 ) and install it using ExecWait http://forums.winamp.com/showthread....=.net+download The same is possible for CD distributions (easy to include ALL required files to CD).
Llynix
26th November 2004 10:03 UTC
Thanks
The exec shell worked fine.
This is what I came up with (thought I would share unless anyone else has questions.)
This requires the function IsDotNETInstalled which can be found here: http://nsis.sourceforge.net/archive/...nstances=0,110
Call IsDotNETInstalled
Pop $0
StrCmp $0 1 +3 0
MessageBox MB_YESNOCANCEL ".NET is required. Would you like to download it now? (Please restart this installer after installing .NET)" IDNO +3 IDCANCEL +2
ExecShell open "http://www.microsoft.com/downloads/details.aspx?FamilyID=262d25e3-f589-4842-8157-034d1e7cf3a3&displaylang=en"
Quit
MessageBox MB_ICONSTOP "Worldwind will install even though you do not appear to have .NET installed. Please don't complain if it doesn't work."