Old 3rd February 2006, 03:18   #1
Ross Bradbury
Junior Member
 
Join Date: Feb 2006
Posts: 2
Close button (X) on instfiles page performs no action

Using NSIS v2.14 I've noticed this behavior when you make an installer that has a page after the instfiles page in either the Classic and the Modern theme. Once the files are installed and you are still at the instfiles page that now says "Completed" the Windows close button (the X in the corner of the window) and the "x Close Alt+F4" option on the system menu (the Alt+Space menu) are enabled but they do not perform any action when clicked. This has made some users of the installer think that it is hung because it doesn't close when they actually have to click the Next button.

I bet someone has already addressed or answered this question, but I didn't find this discussed anywhere.

There are two obvious work-arounds:
1) I leave it like it is. Some users will click the X a few times and then try clicking Next and all will be fine.
2) I AutoClose the instfiles page so they never have a page where the installer is idle and the X button doesn't respond (but the nice log window disappears).

Is there a way to disable Close in this state?
Attached Files
File Type: nsi closebutton.nsi (700 Bytes, 329 views)
Ross Bradbury is offline   Reply With Quote
Old 3rd February 2006, 04:52   #2
Instructor
Major Dude
 
Join Date: Jul 2004
Posts: 671
Unfortunatelly /ENABLECANCEL flag work only for the last page. I told kichik about this, but I don't remember what he said
Instructor is offline   Reply With Quote
Old 3rd February 2006, 10:51   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
/ENABLECANCEL is meant only for the last page.

There is some discussion. It's mainly about the cancel button in the finish page. I don't remember if the close button was actually discussed, but they're both related so they will be fixed together.

http://forums.winamp.com/showthread....ghlight=cancel
http://sourceforge.net/tracker/index...49&atid=373085

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 8th February 2006, 02:38   #4
Ross Bradbury
Junior Member
 
Join Date: Feb 2006
Posts: 2
Thank you both for your reply. My question was actually about the displayed state of the the close button. After some confusion and a bit of thought I think I understand how /ENABLECANCEL might relate. The behavior of the close button must be tied to the Cancel button. However we should be able to disable the Close item on the system menu to disable the close button whenever the cancel button is disabled.

I may attempt to execute some API calls myself and see if I can disable the close button before instfiles page using code similar to the code found at http://addressof.com/blog/articles/232.aspx, however I am betting that minimizing and restoring the window will re-enable the close button. If I actually try this I'll post my code and its results.
Ross Bradbury is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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