2011/9/19 <[email protected]>: > 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 _______________________________________________ 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
