Archive: Add Link to Components Page


Add Link to Components Page
  I'm attempting to add a link to the "Components Page" but I can't seem to figure it out.

Similar to this example:
http://nsis.sourceforge.net/Add_link...page_%28MUI%29

But this example pertains to the "Welcome Page"

Any help would be appreciated.

Thanks!


That example assumes you're using MUI1. If you're using MUI2, you can add a link control for example through editing the appriopriate header file in NSIS\Contrib\Modern UI 2.


Ok, thanks.

I found a solution, I just used reshacker, seemed to work.


Using Resource Hacker with Linker should be the only way. The components page does not use nsDialogs.

Stu


You may use the System plugin to create one:
Before creating, first you should get the position of another control and calculate a position using the gotten coordinate for the new control.

FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $1 $0 control_id
!insertmacro GetDlgItemRect $1 $2 $3 $4 $0 $1
IntOp $2 $2 + 15
!insertmacro CreateLinker "View my site" $1 $2 50 8 $0 1600 "http://xxx.xxx.xxx/"

Maybe you would destroy some control and put yours there:
GetDlgItem $1 $0 control_id
System::Call 'User32::DestroyWindow(i r1)'

Some macro written by bluenet:

ButtonLinker plugin is a joint one with the ButtonEvent and the Linker plugin.
In the following macro, you may replace it with the linker plugin.
http://nsis.sourceforge.net/ButtonEvent_plug-in
http://nsis.sourceforge.net/Linker_plug-in


macroend 

>

macroend 

>

I write an example. It destroy the "Space Required" text on components page and create a link there.
This example needs the "Linker" plugin. If you don't have this plugin, download it yourself first.
http://nsis.sourceforge.net/Linker_plug-in


hi,
I need exactly this for my MUI2 Installation.
Unfortunalety, your example isn't working on my system ("go to google" is shown, but nothing happens when I click on it)
Windows Vista, latest nsis installation, linker 1.1 plugin


The zip with version 1.1 of the linker plug-in is no longer online, and I can't find it with google. Could someone please recompile and reupload it, preferably directly into the wiki this time?
http://nsis.sourceforge.net/Linker_plug-in


Edit: Or maybe someone still has v1.1 lying around and can upload it?


Thanx a lot, Jiake!
Would you please add an example with a button instead of link?
Many thanks.