PDA

View Full Version : install sequence just before MUI_PAGE_FINISH


zanz
31st July 2008, 22:17
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.

LoRd_MuldeR
31st July 2008, 23:31
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...

zanz
1st August 2008, 17:57
Thanks a bunch, exactly what i was looking for!