Archive: install sequence just before MUI_PAGE_FINISH


install sequence just before MUI_PAGE_FINISH
Is there a function or way to access files from the install dir just before the finish page MUI_PAGE_FINISH is displayed?

.onInstSuccess function (i think) executes when the finish page is already displayed.

A situation where installer has just finished copying files to the installdir, but the finish page isn't displayed. Do we have any function in between?

What I'm trying to do is to silently install a msi package from the install dir. When i silently launch the installation of the msi package from the installdir on .onInstSuccess fucntion, it seems like the installer has frozen on the finish page (until the MSI package is installed). It's a bad user experience. I'm just trying to create a better user experience. Please help.


Create a custom pre/show function for the finish page:

!define MUI_PAGE_CUSTOMFUNCTION_PRE MyFinishPre
!define MUI_PAGE_CUSTOMFUNCTION_SHOW MyFinishShow
!insertmacro MUI_PAGE_FINISH

[...]

Function MyFinishPre
...
FunctionEnd

Function MyFinishShow
Banner::show /NOUNLOAD "Installing important stuff, please wait..."
File /oname=$PLUGINSDIR\Setup.exe "redist\Setup.exe"
ExecWait '"$PLUGINSDIR\Setup.exe" /S'
Banner::destroy"
FunctionEnd



Alternatively you could simply install the MSI package in the last install section.

If you do it in the show function, I'd use the Banner plugin, see code above...

Thanks a bunch, exactly what i was looking for!