PDA

View Full Version : Run applicaiton after silent install


dcricardo
15th October 2009, 19:08
Is it possible to run the application installed when using /S option?

My script already has the MUI_FINISHPAGE_RUN symbol and works fine when the installer is not executed in silent mode.

Thanks.

MSG
15th October 2009, 19:23
Simply check the installer's command line parameters and execute your application at the end of the installer if that parameter was supplied. Check the command reference and google to find which commands/scripts to use.

redxii
16th October 2009, 05:37
Would running it in .onInstSuccess using IfSilent and Exec also work?

Function .onInstSuccess

IfSilent 0 +2
Exec '"$INSTDIR\yourprogram.exe"'

FunctionEnd

Something like that.

dcricardo
16th October 2009, 13:59
I'm using the solution from redxii.

But the one from MSG seems fine too.

Thank you all.