Skip to content
⌘ NSIS Forum Archive

Unable to disable Back button on Directory Page

4 posts

rpbrehm#

Unable to disable Back button on Directory Page

Hi,

I am trying to disable the back button due to the fact that I am using a custom page. Here is what the installer pages look like:

!insertmacro MUI_PAGE_WELCOME
page custom ShowSelect LeaveSelect
!define MUI_PAGE_CUSTOMFUNCTION_PRE directory_pre
!insertmacro MUI_PAGE_DIRECTORY

I saw a post regarding hiding the Cancel button on the FINISH page so I tried:

Function directory_pre
; Don't show back button.
WriteINIStr '$PLUGINSDIR\iospecial.ini' 'Settings' 'BackEnabled' '0'

Functionend

Unfortunately this did not work. So I am stuck.

Any help would be greatly appreciated.

Cheers,

Bob
Red Wine#
A wiki page that might help you,
Comm@nder21#
!define MUI_PAGE_CUSTOMFUNCTION_SHOW dir_show
!insertmacro MUI_PAGE_DIRECTORY

Function dir_show
GetDlgItem $0 $HWNDPARENT 3
EnableWindow $0 0
FunctionEnd
rpbrehm#
Hi,

This code did the trick! I was now able to release my software project featuring the NSIS installer.

Regards,

Bob