[CMake] Can not install two executable using CPACK_NSIS_EXTRA_INSTALL_COMMANDS .

Benoit benpaka.spam at gmail.com
Mon May 17 08:03:03 EDT 2010


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.

----------------------

I was wondering if someone has a way to solve this problem.


Another simple question is:
 if it is possible to check that the software is already installed, and
select repair or uninstall (like other installer) if want to use a more
recent version?






--
Benoit RAT
www.neub.co.nr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100517/df9e74ec/attachment.htm>


More information about the CMake mailing list