Archive: Bypass MUI Directory page


Bypass MUI Directory page
Hey guys,

I'm having a little trouble getting my head around a problem I'm having with MUI 2. What I want to do seems relatively simple, so I'm hoping someone comes back with a duh noob answer.

My installer right now only has two options, an automated install and a manual. The automated install looks for folders to install my files to, and the manual puts them in one folder for the user to further install where they need. With the manual install, I want the MUI directory page to appear directly after the section page, but with the automated install I want to bypass the directory page and go straight to the instfiles page.

It seems like the way to go would be some sort of custom page with a conditional abort command, at least that's what the wiki says, but how do I include the directory page in my custom page?

Thanks for any help.

Matt


Nada from the forum? I could make my own custom page, but it wouldn't look consistent. I can't call conditionals outside of a function, and the !insertmacro blows up inside of a function (it wants to declare variables, I think).


There's no need for a custom page. Skipping the directory page with Abort is also possible. Simply define a pre-callback function for it and call Abort there to skip the page.


And to do that for MUI:

!define MUI_PAGE_CUSTOMFUNCTION_PRE DirectoryPagePre
!insertmacro MUI_PAGE_DIRECTORY

Stu


Thanks for the help guys, the callback functions are an awesome feature that I was missing! Problem solved.