Skip to content
⌘ NSIS Forum Archive

install button instead of finish button

5 posts

bubu#

install button instead of finish button

i sure hope this is the last question on nsis...
i had some problems before with the bbcolor of labels..to solve it i did a compromise .. i set the window backgorund color as the one from the labels. and before i could say "yeeey" something very interesting came up. instead of the finish button i had an "install" button that acted as a finish one..cause it terminates the installer as it is supposed to do . but i have no idea how this can happen.
this is my function:

Function SetControlColours

; Give labels a transparent background
ReadINIStr "$0" "$PLUGINSDIR\ioSpecial.ini" "Field 6" "HWND"
;GetDlgItem $0 $HWNDPARENT 1205
SetCtlColors "$0" "000000" "FFFFFF"

ReadINIStr "$0" "$PLUGINSDIR\ioSpecial.ini" "Field 7" "HWND"
;GetDlgItem $0 $HWNDPARENT 1206
SetCtlColors "$0" "000000" "FFFFFF"

ReadINIStr "$0" "$PLUGINSDIR\ioSpecial.ini" "Field 8" "HWND"
;GetDlgItem $0 $HWNDPARENT 1207
SetCtlColors "$0" "000000" "FFFFFF"

ReadINIStr "$0" "$PLUGINSDIR\ioSpecial.ini" "Field 9" "HWND"
;GetDlgItem $0 $HWNDPARENT 1208
SetCtlColors "$0" "000000" "FFFFFF"

; Reload window
!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioSpecial.ini"
Pop $0 ;HWND
GetDlgItem $0 $HWNDPARENT 1200
SetCtlColors $0 "FFFFFF" Transparent

ShowWindow $0 ${SW_HIDE}
ShowWindow $0 ${SW_SHOW}

FunctionEnd

the colors for the background for the labels,..of course that it does not work... but i cannot figure it how . from where did the "install" button appeared :O
Red Wine#
Install button appears on every page that is last in the sequence before the Instfiles page. You may change it with instruction 4.8.1.19 InstallButtonText

As for changing colors on a custom (InstallOptions) page, you must do it between,
InstallOptions::InitDialog /NOUNLOAD and InstallOptions::Show.
bubu#
🙁

i have put the code above between :
InstallOptions::InitDialog /NOUNLOAD and InstallOptions::Show and my finish page just blocks..has no finish button. no nothing.
Afrow UK#
It isn't a bug. See my post in the other topic:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Stu