Old 7th September 2004, 19:23   #1
Mad Doggie
Junior Member
 
Join Date: Sep 2003
Location: Roswell, GA
Posts: 44
Selectively show Directory Page with MUI

I have an installer that depending on the results of a custom page, may or may not need to display the MUI Directory Page. I guess the macro is going to get called no matter what, but depending on the value in a variable or an INI file I want to selectively skip the Directory Page.

My guess is that I need to write a custom function and then refer to it via MUI_PAGE_CUSTOMFUNCTION_SHOW right before I define MUI_DIRECTORY page. Is this correct?

I guess the function will check my variable and then call InstallOptions::show to display the dialog if necessary. What INI file should I use?
Mad Doggie is offline   Reply With Quote
Old 7th September 2004, 20:06   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You need to call Abort in MUI_PAGE_CUSTOMFUNCTION_PRE if you want to skip the page.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 9th September 2004, 15:59   #3
Mad Doggie
Junior Member
 
Join Date: Sep 2003
Location: Roswell, GA
Posts: 44
That worked perfectly. Thank you!
Mad Doggie 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