Skip to content
⌘ NSIS Forum Archive

Skip finish page and use run application at the end

2 posts

winman2004#

Skip finish page and use run application at the end

I have a requirement where my NSIS installer works based on command line. If i pass a particular command line then i want to skip welcome page,licence,directory page and finish page.In normal case without command line the installer displays all the page.

I have done it now using pre function for those page macro and using abort. But for MUI_PAGE_FINISH i cannot use pre fuction to skip page. As i want to use MUI_FINISHPAGE_RUN_PARAMETERS to run my application at end of install. So now if i use pre function and skip the page using abort then MUI_FINISHPAGE_RUN_PARAMETERS also gets skipped.

So how i can manage it? I want to use MUI_FINISHPAGE_RUN_PARAMETERS or run my application at the end and also want to skip the finish page for particular command line.
JasonFriday13#
Had a look at the source, try putting this into you finish page pre function:
(command line value check here, false skips past next two lines)
Exec "$\"${MUI_FINISHPAGE_RUN}$\" ${MUI_FINISHPAGE_RUN_PARAMETERS}"
Abort