Archive: 2 or More Dir Pages - Which Is Which ?


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


Welcome to the forum.

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

http://forums.winamp.com/showthread....hreadid=136925


Thanks,

It helped a lot:D