Archive: Skipping MUI_STARTUP page


Skipping MUI_STARTUP page
Hello!
I need to skip displaying of MUI startup page if some conditions are accepted in custom page function. And this startup page is last before install proccess. Can I do this somehow?
Thank You.


You would have to edit the system.nsh file in Contrib\Modern UI.
Firstly, do you mean the Welcome Page?

If so, then you will need to search for "!macro MUI_FUNCTIONS_WELCOMEPAGE FUNCTION" within System.nsh. Now, scroll down till you get to "!insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ioSpecial.ini"". Now, you just want to skip over that to skip the Welcome Page.

I'd recommend you make a custom copy of the System.nsh file just for this installer.

-Stu


I'm sorry, I mean STARTMENU page. And I need runtime skip this page in custom page function and this page is last so it have Install button which must be shown on previous page.


Either way you don't need to change System.nsh. You just need to call Abort from the pre function (!define MUI_CUSTOMFUNCTION_STARTMENU_PRE myPreFunc). To change the previous button to install you'd have to change the text manually using SendMessage ${WM_SETTEXT}. But why would you want to skip this page? I assume it's because you have a section that lets the user choose weather to create start menu icons or not, but the start menu page already has a checkbox for that so it's not necessary to have a section for that.


Thank You for help!
I need to do this skipping because my installation have a section thats in case of its selection start menu page just haven't sense.