Archive: Selectively show Directory Page with MUI


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?


You need to call Abort in MUI_PAGE_CUSTOMFUNCTION_PRE if you want to skip the page.


That worked perfectly. Thank you!