watzr
24th September 2009 09:56 UTC
Skipping MUI Welcome Page
Hi,
In my installer program, if the application is already installed then a custom page called "Program Maintenance" will display with three option Modify, Repair and Remove. In this case I want to skip (the welcome page + License Page + Directory Page) and directly move to components page instead and continue installation following the pages come after components page. But I have used "!insertmacro MUI_PAGE_WELCOME" command instead of creating a custom page. Is there a way to do this without creating a custom page? Eventhough I have used GOTO to jump in to components page still welcome page displays.
If someone can, please help me.
MSG
24th September 2009 10:03 UTC
Simply call 'abort' in the prefunctions for every page you want to skip.
watzr
24th September 2009 10:08 UTC
I can call "Abort" with prefunctions of custom pages. But if I'm calling macro MUI_PAGE_WELCOME then where should I call "Abort". I couldn't find a way to define a prefunction for MUI_PAGE_WELCOME since it has no parameters to pass.
MSG
24th September 2009 10:35 UTC
Open the MUI2 readme and look for 'MUI_PAGE_CUSTOMFUNCTION_PRE'.
http://nsis.sourceforge.net/Docs/Mod...02/Readme.html
jpderuiter
24th September 2009 10:45 UTC
You have to call "!define MUI_PAGE_CUSTOMFUNCTION_PRE PreWelcomeFunction" right before calling "!insertmacro MUI_PAGE_WELCOME"
watzr
24th September 2009 11:08 UTC
Thanks for both.. It's working now.