foruok
22nd August 2005 09:23 UTC
the confirm page's problem
I'd made an installer use MUI in Chinese,there was a small problem at the MUI_PAGE_FINISH.
when install finished,the "cancel" button still visible on the finish page.
How can I disable the cancel button on finish page or make it invisible?
NSIS v2.08
Thanks.
Joost Verburg
22nd August 2005 10:41 UTC
The cancel button is enabled whenever there are options on the finish page such as "Run Program" or "Show Readme".
foruok
23rd August 2005 02:04 UTC
o,so does that.My finish page has "Run program" and "show readme" options.
no way to disable it?I don't think so.
Maybe I can find the cancel button 's handle,then disable it.But I don't know how to do.
JasonFriday13
23rd August 2005 05:42 UTC
Put !define MUI_PAGE_CUSTOMFUNCTION_PRE "PreFunc" in before the finish page command. Then insert this code:
Function "PreFunc"
!insertmacro MUI_INSTALLOPTIONS_WRITE "iospecial.ini" "Settings" "Cancelenabled" "0"
FunctionEnd
foruok
23rd August 2005 07:45 UTC
Thanks.
That's OK.