Skip to content
⌘ NSIS Forum Archive

silent install question

5 posts

jaschulz#

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
Yathosho#
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#
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.