Archive: How to add a link to the "I agree" check box


How to add a link to the "I agree" check box
I need help on following;

I want to add a link to the "I agree" check box on the standard license page, anybody having any idea.

I don't want to create an custom page for this !

Thanks in advance,
HK


If you want the full text to be a link you will need to add your own static text (label) next to the check box using Resource Hacker on the correct UI (i.e. Contrib\UIs\modern.exe). The text is in the language string $(^AcceptBtn) so you can set your label text to that in the page show function. Use the Linker plug-in to make the label a clickable link. If you only want "I agree" text clickable then it means you have to add a SysLink control (again it can be done using Resource Hacker). However it means the text has to contain the <a> (anchor) tag so you can't really use $(^AcceptBtn). SysLink is only available on XP and above.

Edit: SysLink: http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
Note that because the page is not nsDialogs, you have to sub-class the inner window yourself to handle the WM_NOTIFY message. Search the forum.

Stu


Edit: nvm


SysLink is actually available on 2000, but it has a different class name and uses different messages IIRC


Afrow UK- Thank you for the excellent idea. The resource handler tool was helpful

I don't want the "I agree" text to be click-able instead i need to add a modifiable hyperlink text to left of check box , heard that there is a new control "LINK" is available in NSIS, any idea how to add it !

Please help i am new bee to NSIS !


If it is to the left then add a static text with Resource Hacker and turn it into a link with the Linker plug-in.

Stu


So nice of you, it worked !