Old 17th November 2012, 18:06   #1
rama646
Junior Member
 
Join Date: Nov 2012
Posts: 5
Question 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 is offline   Reply With Quote
Old 17th November 2012, 22:14   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Search the forum. This has been answered before.

Stu
Afrow UK is offline   Reply With Quote
Old 19th November 2012, 03:38   #3
rama646
Junior Member
 
Join Date: Nov 2012
Posts: 5
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
rama646 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
button, nsis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump