Skip to content
⌘ NSIS Forum Archive

the confirm page's problem

5 posts

foruok#

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#
The cancel button is enabled whenever there are options on the finish page such as "Run Program" or "Show Readme".
foruok#
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#
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