MUI: how to disable Cancel/Back on a page given
Hi,
how can I disable Cancel/Back buttons on particular page in MUI if I can?
Thanks!
Archive: MUI: how to disable Cancel/Back on a page given
MUI: how to disable Cancel/Back on a page given
Hi,
how can I disable Cancel/Back buttons on particular page in MUI if I can?
Thanks!
You can disable the cancel and/or back buttons on the Welcome or Finish page by using:
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "BackEnable" "0"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "CancelEnable" "0"
These should be called on the Welcome/Finish page Pre functions.should be possible on other pages aswell using the MUI_PAGE_CUSTOMFUNCTION_PRE or
MUI_PAGE_CUSTOMFUNCTION_SHOW defines and using EnableWindow on the button
(didnt test this)
Thanks, I will try to use EnableWindow as well.
Originally posted by AndersIt works! The was only one problem that I didn't know ids for Cancel and Back and determined them after some experiments. So final pre-function for pages that needs to be back/cancel disabled is
should be possible on other pages aswell using the MUI_PAGE_CUSTOMFUNCTION_PRE or
MUI_PAGE_CUSTOMFUNCTION_SHOW defines and using EnableWindow on the button
(didnt test this)
Just for the archive (if someone like me gets into this thread by using the search function):
I found out that you actually have to use
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "BackEnabled" "0"