Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th October 2008, 21:19   #1
Spilly
Junior Member
 
Join Date: Aug 2007
Posts: 46
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).
Attached Images
File Type: jpg close_btn.jpg (1.3 KB, 109 views)
Spilly is offline   Reply With Quote
Old 29th October 2008, 22:54   #2
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 442
code:
!define MUI_FINISHPAGE_CANCEL_ENABLED

Enable the Cancel button so the user can skip any options displayed on the finish page.
demiller9 is offline   Reply With Quote
Old 30th October 2008, 14:16   #3
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
otherwise, you'll have to enable it programmatically:
code:

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
Animaether is offline   Reply With Quote
Old 30th October 2008, 18:37   #4
Spilly
Junior Member
 
Join Date: Aug 2007
Posts: 46
You guys are awesome, thanks.
Spilly is offline   Reply With Quote
Old 30th October 2008, 22:11   #5
Spilly
Junior Member
 
Join Date: Aug 2007
Posts: 46
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.
Spilly is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump