Skip to content
⌘ NSIS Forum Archive

Disabled "X button" on custom finish page

5 posts

Spilly#

Disabled "X button" on custom finish page

How can I enable the "X button" on my custom finish page?

On the last page of my installer, the finish page is removing the ability to close the installer through the standard "X button" on the top right. All the other pages have this button properly enabled.

I am still using installoptions for this page, but noticed that this did not happen when I was using a previous version of the nsis compiler (2.25).
demiller9#
!define MUI_FINISHPAGE_CANCEL_ENABLED
Enable the Cancel button so the user can skip any options displayed on the finish page.
Animaether#
otherwise, you'll have to enable it programmatically:

push $1
System::Call "user32::GetSystemMenu(i $HWNDPARENT,i 0) i.s"
pop $1
System::Call "user32::EnableMenuItem(i $1,i 0xF060,i 0)"
pop $1
From: Anders @ http://forums.winamp.com/showthread.php?threadid=238238
Spilly#
Ok, so the suggestion worked to enable the check box, but I'm fairly curious as to the actual reason this is happening.

My "finish page" is actually just a custom page I've created through installOptions. I have other custom pages that I've created, but they don't have this disabled by default. also, it wasn't disabled in nsis 2.25.