Skip to content
⌘ NSIS Forum Archive

Diable Back button

3 posts

rama646#

Diable Back button

I have created 2 custom pages after INSTFILES
like
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
Page custom oldPage
Page custom newPage
!insertmacro MUI_PAGE_FINISH

In first page back button is disabled
but in second page not disabled
and also in Finish page back button is enabled.

How to disable these buttons ?
rama646#
I got the answer.

Use this to disable a custom page ...
GetDlgItem $R0 $HWNDPARENT 3
EnableWindow $R0 0





TO Disable back in finish page

!define MUI_PAGE_CUSTOMFUNCTION_PRE DisableBackButton

!insertmacro MUI_PAGE_FINISH


Function DisableBackButton
GetDlgItem $R0 $HWNDPARENT 3
EnableWindow $R0 0
FunctionEnd