Archive: Close button (X) on instfiles page performs no action


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?


Unfortunatelly /ENABLECANCEL flag work only for the last page. I told kichik about this, but I don't remember what he said :)


/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


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.