jaschulz
22nd February 2004 01:12 UTC
silent install question
If I run my installer with the /S command line option, it works fine except for the code I use to start the application after the installer is finished.
I have
...
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE myLeaveFinishPage
!insertmacro MUI_PAGE_FINISH
...
Function myLeaveFinishPage
Exec "$INSTDIR\myApp.exe"
FunctionEnd
How can I get the installer to start myApp when running in silent mode.
Thanks,
JAS
Joost Verburg
22nd February 2004 11:40 UTC
Use the .onInstSuccess function.
jaschulz
22nd February 2004 13:26 UTC
Yes, of course. I should have thought of that. Thanks.
Yathosho
22nd February 2004 13:33 UTC
i also have a question about silent install, it's unrelated, but i just post it here.
when compiling an installer using silent mode, will the compiler still include the gui in the .exe or will it save those few kb?
Joost Verburg
22nd February 2004 14:47 UTC
It won't include GUI resoures, however you should recompile NSIS without support for visisble installer to prevent the binary code to control the GUI to be included.