On 05/17/2010 02:03 PM, Benoit wrote: > Hy I've created my CPACK in a way that during the installation the > PostgreSQL and the MSVC Redistributable are installed automatically. > however this doesn't work when i put them both, but when there is only one > it work perfectly for this one > > Exemple > > set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait > '\\\"$INSTDIR\\\\${VCREDIST_NAME}\\\" /q'") > this works > > -------------------- > or > set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait > '\\\"$INSTDIR\\\\${PSQLINSTALL_NAME}\\\" '") > also works > > ----------------------- > > but, > > list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait > '\\\"$INSTDIR\\\\${VCREDIST_NAME}\\\" /q'") > list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait > '\\\"$INSTDIR\\\\${PSQLINSTALL_NAME}\\\" '") > > doesn't work.
How does "doesn't work" manifest itself? Is one of MSVC and PostgreSQL installed, but the other isn't, or do both fail? Which error message do you see? Is the CPACK_NSIS_EXTRA_INSTALL_COMMANDS variable empty before list(APPEND CPACK_NSIS_EXTRA_INSTALL_COMMANDS ...)? Have you tried set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait '\\\"$INSTDIR\\\\${VCREDIST_NAME}\\\" /q'") set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS ${CPACK_NSIS_EXTRA_INSTALL_COMMANDS} "ExecWait '\\\"$INSTDIR\\\\${PSQLINSTALL_NAME}\\\" '") as an alternative? Regards, Michael _______________________________________________ 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