I know it&#39;s 2 months later now, but this has been bugging me hanging around my inbox waiting for me to get back to it... :-)<br><br>This *does* work for me on a Windows machine using CMake 2.4.5 and NSIS v2.14.<br><br>
Here are the exact steps I took, and my results, based on a CMake source tree updated today and using a pre-installed binary of CMake 2.4.5 to drive the build:<br>-1- Copied the &quot;CMake/Tests/Tutorial/Step5&quot; directory to a new folder called &quot;Step6&quot;
<br>-2- Added a copy of &quot;CMake/Modules/NSIS.template.in&quot; to &quot;Step6&quot;<br>-3- Modified my <a href="http://NSIS.template.in">NSIS.template.in</a> to have some extra comments at the top of it<br>-4- Modified the Step6/CMakeLists.txt file by adding the following&nbsp; lines at the bottom:
<br>&nbsp; set(CMAKE_MODULE_PATH &quot;${CMAKE_CURRENT_SOURCE_DIR}&quot; ${CMAKE_MODULE_PATH})<br><div><span class="gmail_quote">&nbsp; include(CPack)<br>-5- Configured, built ALL, built PACKAGE<br><br>-6- Results: I know it used *my* copy of the 
<a href="http://NSIS.template.in">NSIS.template.in</a> file because I inspected &quot;_CPack_Packages/win32/NSIS/project.nsi&quot; after building the PACKAGE target and my comments from bullet point -3- above were in there...
<br><br>Now. This is not to say that you can use any old <a href="http://NSIS.template.in">NSIS.template.in</a> file and get it to work properly. You do have to produce an output file that&#39;s named as CPack expects it to be named so that the rest of the packaging process works. If all you want to do is rename your output file, though, you can simply set the variable CPACK_OUTPUT_FILE_NAME before including CPack in your 
CMakeLists.txt file.<br><br>I would recommend that you start with the <a href="http://NSIS.template.in">NSIS.template.in</a> file that CMake provides and edit it very carefully, only adding things to it. You can change/remove things from it if you&#39;re sure they&#39;re not needed by the rest of the packaging process that CPack performs. If you are still having problems getting this to work and you&#39;re using CMake 
2.4.5 or greater, I would definitely be interested to hear back from you again. (With detailed steps on what you are doing and exactly what is failing.) This should work...<br><br><br>HTH,<br>David Cole<br><br><br>On 11/13/06, 
<b class="gmail_sendername">wedekind</b> &lt;<a href="mailto:wedekind@caesar.de">wedekind@caesar.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello David<br><br>&gt; You should be able to use your own <a href="http://NSIS.template.in">NSIS.template.in</a> file if you name it<br>&gt; exactly the same as CMake&#39;s copy and then add the directory containing<br>&gt; your own copy of it to CMAKE_MODULE_PATH.
<br>&gt;<br>&gt; For example, if your copy is in a subdirectory of your source directory<br>&gt; named &quot;Templates,&quot; you could do this...:<br>&gt; SET(CMAKE_MODULE_PATH &quot;${CMAKE_CURRENT_SOURCE_DIR}/Templates&quot;
<br>&gt; ${CMAKE_MODULE_PATH})<br>&gt; ... prior to including the CPack file in your CMakeLists.<br>&gt;<br>&gt; Let me know if this doesn&#39;t work. I haven&#39;t tried it myself with this<br>&gt; particular file, but it should work...
<br><br>Unfortunately this does not work for me :( I have set the CMAKE_MODULE_PATH<br>like you have described but CMake obviously chooses its own<br><a href="http://NSIS.template.in">NSIS.template.in</a>.<br><br>Why does overwriting the module path like this does not work? I have done it
<br>in my &quot;root&quot; CMakeLists.txt before including CPack.<br><br>Should CMake/CPack be expanded here?<br><br>Cheers<br><br>Marco<br><br><br></blockquote></div><br>