Your <a href="http://template.in" target="_blank">template.in</a> file is modified from what is in CMake. Did you move the <span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">CPACK_NSIS_EXTRA_PREINSTALL_</span><u style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"></u><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">CO</span><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">MMANDS up one line?</span><br>

<br>The <a href="http://template.in" target="_blank">template.in</a> file is configured at CPack time into a file in your build tree called &quot;_CPack_Packages\win32\NSIS\project.nsi&quot; -- you&#39;ll see the &quot;File /r&quot; in that file.<div>

<br></div><div>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&#39;d expect it to: on the final screen of the installer, but before the files are actually installed.<br>
<br>Are you saying you *never* see the message box appear, or are you just expecting to see it in an earlier screen?<br></div><div><br>What version of NSIS are you using? (I&#39;m using 2.46)<br><br><br>David<br><br><br><div class="gmail_quote">
On Wed, Oct 17, 2012 at 10:32 AM, Danoush <span dir="ltr">&lt;<a href="mailto:danoushh@gmail.com" target="_blank">danoushh@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi David,<br>
<br>
Thanks for the reply.<br>
<br>
I&#39;m do not quite understand your remarks. I cannot find &quot;cmCPackNSISGenerator.cxx&quot; in my CMake tree. This may be because I am using the binary package of CMake and not building from sources.<br>
<br>
Also, I cannot find the string &quot;File /r&quot; in <a href="http://NSIS.template.in" target="_blank">NSIS.template.in</a> (see attached file).<br>
<br>
Looking forward to your reply.<br>
<br>
Regards,<br>
Dan<div><div><br>
<br>
<br>
On 10/15/2012 1:21 PM, David Cole wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Of course, you must be if you&#39;re actually seeing the message box....<br>
Never mind my silly question.<br>
<br>
It looks to me like it should be executed before any installation commands.<br>
<br>
The variable CPACK_NSIS_FULL_INSTALL is set to &quot;File /r<br>
\&quot;${INST_DIR}\\*.*\&quot;&quot; in Source/CPack/<u></u>cmCPackNSISGenerator.cxx and<br>
that should be inserted directly after your extra code.<br>
<br>
Does the configure NSIS.template file look correct? (i.e. -- is the<br>
File /r command after the MessageBox call?)<br>
<br>
<br>
On Mon, Oct 15, 2012 at 1:18 PM, David Cole &lt;<a href="mailto:david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are you using CMake 2.8.9?<br>
<br>
That variable did not exist prior to 2.8.9.<br>
<br>
<br>
On Mon, Oct 8, 2012 at 12:33 PM, dan h. &lt;<a href="mailto:danoushh@gmail.com" target="_blank">danoushh@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Any thoughts about this issue?<br>
<br>
Regards,<br>
Dan<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</blockquote></blockquote></blockquote>
<br>
</div></div></blockquote></div><br>
</div>