Old 19th January 2007, 00:56   #1
rpbrehm
Junior Member
 
Join Date: Jan 2007
Posts: 2
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
rpbrehm is offline   Reply With Quote
Old 19th January 2007, 03:13   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
A wiki page that might help you,
http://nsis.sourceforge.net/Demonstr...Pre_Show_Leave

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 19th January 2007, 12:01   #3
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
code:
!define MUI_PAGE_CUSTOMFUNCTION_SHOW dir_show
!insertmacro MUI_PAGE_DIRECTORY

Function dir_show
GetDlgItem $0 $HWNDPARENT 3
EnableWindow $0 0
FunctionEnd

Comm@nder21 is offline   Reply With Quote
Old 22nd January 2007, 14:23   #4
rpbrehm
Junior Member
 
Join Date: Jan 2007
Posts: 2
Hi,

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

Regards,

Bob
rpbrehm is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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