Your template.in file is modified from what is in CMake. Did you move the CPACK_NSIS_EXTRA_PREINSTALL_**COMMANDS up one line?
The template.in file is configured at CPack time into a file in your build tree called "_CPack_Packages\win32\NSIS\project.nsi" -- you'll see the "File /r" in that file. If I add your CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS to the Tests/Tutorial/Step7/CMakeLists.txt file in the CMake test suite, I see the message box pop up just where I'd expect it to: on the final screen of the installer, but before the files are actually installed. Are you saying you *never* see the message box appear, or are you just expecting to see it in an earlier screen? What version of NSIS are you using? (I'm using 2.46) David On Wed, Oct 17, 2012 at 10:32 AM, Danoush <[email protected]> wrote: > Hi David, > > Thanks for the reply. > > I'm do not quite understand your remarks. I cannot find > "cmCPackNSISGenerator.cxx" in my CMake tree. This may be because I am using > the binary package of CMake and not building from sources. > > Also, I cannot find the string "File /r" in NSIS.template.in (see > attached file). > > Looking forward to your reply. > > Regards, > Dan > > > > On 10/15/2012 1:21 PM, David Cole wrote: > >> Of course, you must be if you're actually seeing the message box.... >> Never mind my silly question. >> >> It looks to me like it should be executed before any installation >> commands. >> >> The variable CPACK_NSIS_FULL_INSTALL is set to "File /r >> \"${INST_DIR}\\*.*\"" in Source/CPack/**cmCPackNSISGenerator.cxx and >> that should be inserted directly after your extra code. >> >> Does the configure NSIS.template file look correct? (i.e. -- is the >> File /r command after the MessageBox call?) >> >> >> On Mon, Oct 15, 2012 at 1:18 PM, David Cole <[email protected]> >> wrote: >> >>> Are you using CMake 2.8.9? >>> >>> That variable did not exist prior to 2.8.9. >>> >>> >>> On Mon, Oct 8, 2012 at 12:33 PM, dan h. <[email protected]> wrote: >>> >>>> Any thoughts about this issue? >>>> >>>> Regards, >>>> Dan >>>> >>>> -- >>>> >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at http://www.kitware.com/** >>>> opensource/opensource.html<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<http://www.cmake.org/Wiki/CMake_FAQ> >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake> >>>> >>> >
-- 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
