[CMake] CPack : Executing post install script (portable way)

Nicholas Yue yue.nicholas at gmail.com
Thu Apr 26 05:29:29 EDT 2012


Hi,

  What is the proper way to execute a post install script in NSIS,
PackageMaker and sh-archive ?

  From reading the
http://www.vtk.org/Wiki/CMake:CPackPackageGenerators, it seems
different package generator has different ways.

  My immediate need is to run a batch script for NSIS at a known
location (relative to the actual installed path i.e. I am taking into
account the user may choose a different installation from the standard
path).

  Is CPACK_NSIS_MUI_FINISHPAGE_RUN suitable ? How does CPack/NSIS
determine the path to that script/executable ?

  How do I determined (within CMake/CPack) the installation directory
chosen by the user ?

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue


More information about the CMake mailing list