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

Crni Gorac cgorac at gmail.com
Mon Feb 7 16:39:38 EST 2011


On Mon, Feb 7, 2011 at 10:09 PM, David Cole <david.cole at kitware.com> wrote:
>
>  [ ... ]
>
> 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...

Thanks Clinton and David for replying.  I tried what David suggested,
after switching to CMake 2.8.4-rc2, and it worked like charm.  Let me
just mention that you need to cite only the name of the executable in
CPACK_NSIS_MUI_FINISHPAGE_RUN: I have it installed in "bin"
subdirectory of the install directory, but in that case you should not
mention "bin" here, or otherwise the executable won't be run (it helps
to examine generated NSIS script for debugging here).

Regards.


More information about the CMake mailing list