[CMake] CPack/NSIS and launching the application after the installation completed

Clinton Stimpson clinton at elemtech.com
Mon Feb 7 15:16:53 EST 2011


On Monday, February 07, 2011 01:10:28 pm Crni Gorac wrote:
> Is it possible, on Windows and with NSIS back-end for CPack, to have
> small check-box on the last page of the installer that would, if
> checked, cause the installed application to be launched after the
> installation completed?  

I'm not sure if you can use the default NSIS template, but you should be able 
to with your own.

> If not, is it then possible somehow with
> CPack/NSIS to unconditionally launch the application after the
> installation completed?
> 

install(PROGRAMS ${myprog} DESTINATION bin)
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait 
'\\\"$INSTDIR\\\\bin\\\\${myprog}\\\"'")

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com


More information about the CMake mailing list