Skip to content
⌘ NSIS Forum Archive

2 or More Dir Pages - Which Is Which ?

3 posts

mhollander#

2 or More Dir Pages - Which Is Which ?

----------------
Code Example
----------------
...
...
...

!define MUI_WELCOMEPAGE
!define MUI_SPECIALBITMAP "COMMON\GRAPHICS\WELCOME.BMP"

!define MUI_CUSTOMPAGECOMMANDS

!define MUI_COMPONENTSPAGE
!define MUI_COMPONENTSPAGE_NODESC
!define MUI_HEADERBITMAP "COMMON\GRAPHICS\BANNER.BMP"

!define MUI_DIRECTORYPAGE
!define MUI_CUSTOMFUNCTION_DIRECTORY_PRE DirectoryPre
!define MUI_CUSTOMFUNCTION_DIRECTORY_SHOW DirectoryShow
!define MUI_CUSTOMFUNCTION_DIRECTORY_LEAVE DirectoryLeave

...
...
...

Function DirectoryPre
StrCmp $9 "0" CheckZXF CheckExch
StrCmp $9 "1" CheckExch CheckZXF
Goto Continue

CheckZXF:
SectionGetFlags ${ZXF} $0
IntCmp $0 1 Continue
Abort

CheckExch:

Goto Continue
Continue:

FunctionEnd

----------
The Issue
----------
I need to Know which Directory page I am on. I have tried using the $9 variable but that does not help.
Any suggestions would be of great assistance

Thanks
Mark

Full Code Attached
kichik#
Welcome to the forum.

This recent thread discusses ways to tell which page you're on:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.