rama646
17th November 2012 19:06 UTC
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 ?
Afrow UK
17th November 2012 23:14 UTC
Search the forum. This has been answered before.
Stu
rama646
19th November 2012 04:38 UTC
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