TomWolle
31st July 2007 23:28 UTC
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
Red Wine
31st July 2007 23:40 UTC
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.
TomWolle
1st August 2007 00:01 UTC
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?
Red Wine
1st August 2007 05:29 UTC
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
TomWolle
1st August 2007 07:30 UTC
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!
Afrow UK
1st August 2007 13:25 UTC
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