[CMake] Can not install two executable using CPACK_NSIS_EXTRA_INSTALL_COMMANDS .

Michael Hertling mhertling at online.de
Mon May 17 20:48:13 EDT 2010


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


More information about the CMake mailing list