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

Eric Noulard eric.noulard at gmail.com
Mon Feb 7 18:34:13 EST 2011


2011/2/7 Crni Gorac <cgorac at gmail.com>:
> 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).

It would be nice to update the Wiki with this information:
http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#NSIS

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list