[CMake] Windows: install conditionnaly an executable
Eric Noulard
eric.noulard at gmail.com
Mon Sep 19 09:59:00 EDT 2011
2011/9/19 <ycollette.nospam at free.fr>:
> Hello,
>
> I would like to do this kind of installation:
>
> My package contains several executable with a version number by application
>
> - first install: install all the application and write a version number into the windows registry
> - update install: install only the application which have a greater version number.
>
[...]
>
> But it works only once (the version number are red only while the package is created by cpack).
Yes because CMakeLists.txt is read at CMake time (when CMake run) and
not at Install time.
>
> How can I read with cmake the registry key "dynamically" in the installer and use this version number to install conditionnaly some applications ?
You need to have a look at your specific installer language (seems to
be NSIS) in order to embbed such script
in your installer (with some extra commands in
"CPACK_NSIS_EXTRA_INSTALL_COMMANDS")
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list