Archive: silent install question


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


Use the .onInstSuccess function.


Yes, of course. I should have thought of that. Thanks.


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?


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.