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

David Cole david.cole at kitware.com
Mon Feb 7 16:09:17 EST 2011


On Mon, Feb 7, 2011 at 3:16 PM, Clinton Stimpson <clinton at elemtech.com>wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>


The commit to fix this bug is in the 2.8.4-rc2 release candidate:
http://public.kitware.com/Bug/view.php?id=11144

With it, you can set CPACK_NSIS_MUI_FINISHPAGE_RUN to an executable in your
installation directory, and it will generate a page with a checkbox on it,
giving the end user the choice of running or not running...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110207/21b591bd/attachment.htm>


More information about the CMake mailing list