Archive: Manipulation of finish dialog with nsDialogs


Manipulation of finish dialog with nsDialogs
  I'd like to manipulate the finish page of my setup wizard. My problem should be solved using nsDialogs. But I do not know how to manipulate an existing page. The examples show how to create a new custom page. But I'd like to add a picture to the finish dialog that works like a link. Is there an example on how to modify an existing page?

This would be the first time using nsDialogs, therefore an example to make the first steps would be great...

Hope someone has an helping example.

Best regards

th_mi


Hello @ all

I'm still looking for an answer on the described issue. I checked the examples of the nsDialogs documentation, and I'm not sure if I understood it all correctly.

The aim using nsDialogs is to change the finish page. I'd like to insert a "Link" and a "linkable picture" at the positions marked in the attached image.

As I understand nsDialogs I have to make the complete finish window by myself. Am I right? If not?

My idea was to minimize the size of the text control with the "click to finish..." text in it and insert my two controls. How can I get the result I'm showin on my attached image.

It is not I want someone to making it for me, it is I have a problem finding a solution that is as easy as possible. I asked this question a longer time ago (http://forums.winamp.com/showthread....hreadid=307784) but I did not understand the solution. The Finish.nsh looks like bohmian villiages to me since I'm not a NSIS professional.

I hope someone could show me how to get the handles of the controls on the finish page and how to make my modifications....

Best regards

th_mi

:(


You could do it like in the following example:


"MUI2.nsh"


>OutFile "custfin.exe"
>Name "Custom Finish"
>InstallDir "$TEMPDIR"
>BrandingText " "

>!define MUI_PAGE_CUSTOMFUNCTION_SHOW addImageLink
>!define MUI_PAGE_CUSTOMFUNCTION_LEAVE remImageLink
>!insertmacro MUI_PAGE_FINISH

>!insertmacro MUI_LANGUAGE English

>Var IMAGE

>Function .onInit
InitPluginsDir
File/oname=$PLUGINSDIRfinish.bmp "${NSISDIR}\\Contrib\\Graphics\\Header\\orange.bmp"
>FunctionEnd

>Function OnClick
; Open link in web browser
ExecShell "open" "http://nsis.sourceforge.net"
>FunctionEnd

>Function addImageLink
Push$0
Push$1

${NSD_CreateBitmap} -150 -57 150 57 ""
Pop $0
${NSD_SetImage} $0 $PLUGINSDIRfinish.bmp $IMAGE

; Register handler for click events
${NSD_OnClick} $0 OnClick

Pop$1
Pop$0
FunctionEnd

>Function remImageLink
${NSD_FreeImage} $IMAGE
FunctionEnd

Section
SectionEnd
>

Hello

Your example works, basically. But the problem is the size of the text panel where the "Click Finish to close wizard" is printed.

I attached an image where I highlighted the dimension of the control using Microsofts SpyXX.

Is there a way cHello

Your example works, basically. But the problem is the size of the text panel where the "Click Finish to close wizard" is printed.

I attached an image where I highlighted the dimension of the control using Microsofts SpyXX.

Is there a way changing the size during runtime?

Than the next thing is, is is possible to make the "bitmap link" in the same way like a "text link"? I mean if I move the mouse cursor over a text link the mouse cursor shape changes to the little hand. Can I do this on a picture / bitmap also? If I can do it, how do I have to manage it?

Best regards

th_mihanging the size during runtime?

Than the next thing is