Archive: waiting for external setup to finish then...


waiting for external setup to finish then...
Hi everyone,

my installer needs to wait for another setup process to finish and then go on to the MUI_PAGE_FINISH page.
So basically it needs to execute this other "setup.exe" after the MUI_PAGE_INSTFILES page has finished and wait with loading that MUI_PAGE_FINISH page until the other setup finished.
How would I go about that?

Tom


ExecWait is the right command, see the manual for details on how to use it.
You may add it at the bottom of your install section or add another hidden section, it's up to your choice.


Originally posted by Red Wine
ExecWait is the right command, see the manual for details on how to use it.
You may add it at the bottom of your install section or add another hidden section, it's up to your choice.
Thanks for your reply!
How do I get the "next-button-pressed-on-MUI_PAGE_INSTFILES-page" event?

Probably I don't get your point, I guess you could use the MUI_PAGE_CUSTOMFUNCTION_LEAVE for that,
http://nsis.sourceforge.net/Docs/Mod...ustomFunctions

The default behavior of the InstFiles page is to stay visible awaiting user's interaction to press the next button, if you want to override this, you'd need to set the AutoCloseWindow instruction to true,
http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.1.3


Originally posted by Red Wine
Probably I don't get your point, I guess you could use the MUI_PAGE_CUSTOMFUNCTION_LEAVE for that,
http://nsis.sourceforge.net/Docs/Mod...ustomFunctions

The default behavior of the InstFiles page is to stay visible awaiting user's interaction to press the next button, if you want to override this, you'd need to set the AutoCloseWindow instruction to true,
http://nsis.sourceforge.net/Docs/Chapter4.html#4.8.1.3
As long as MUI_PAGE_CUSTOMFUNCTION_PRE prevents the associated window/page from opening or being shown than this is exactly what I need.
I will give this a try.
Thanks a lot!

To stop the InstFiles auto closing, use
!define MUI_FINISHPAGE_NOAUTOCLOSE.
This must go before all page insertions.
This is not enabled by default with MUI.

Stu