Skip to content
⌘ NSIS Forum Archive

Cancel button on MUI_PAGE_FINISH

6 posts

Boyito#

Cancel button on MUI_PAGE_FINISH

HI
How can i disable the button from the subject?, because if in that page the click on cancel or finish results in the same.

TIA
Boyito#
Cancel button on MUI_PAGE_FINISH

Hi RW, thats right, but i use a finish page with readme and check button

!define MUI_FINISHPAGE_LINK "http://www.sg.com"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.sg.com"
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_RUN "$INSTDIR\HDD32.exe"
!define MUI_FINISHPAGE_RUN_NOTCHECKED
!define MUI_FINISHPAGE_RUN_TEXT "$(TEXT_RUN_HDD32)"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\$(MUIReadMe)"
!insertmacro MUI_PAGE_FINISH

And happen that i tall in the subject, look in the attached image
TIA
kichik#
When you click Cancel, nothing will be ran and setup will exit. It's like unchecking all the check boxes and clicking Finish. Use EnableWindow to disable it in the show callback function of the finish page.
Boyito#
Great, but, sorry, how can i do that??
:-(

"Use EnableWindow to disable it in the show callback function of the finish page."
kichik#
As shown in the following thread, only for the Cancel button which has the identifier of 2.

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.