That NSIS file is configure from Modules/<a href="http://NSIS.template.in">NSIS.template.in</a> -- in the input file the line giving you an error is:<br><br>&nbsp; InstallDir &quot;$PROGRAMFILES\@CPACK_PACKAGE_INSTALL_DIRECTORY@&quot;<br>
<br>So.... there must be a carriage return in your definition of CPACK_PACKAGE_INSTALL_DIRECTORY somehow.<br><br><br>Perhaps this:<br><p>SET(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;aten</p>

<p>${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}&quot;)</p><p><br></p><p>should be that:</p>

<p>SET(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;aten ${ATEN_VERSION_MAJOR}.${ATEN_VERSION_MINOR}&quot;)</p><br>Looks like you have an accidental carriage return in your string. (And leftover references to the CMake_* version variables...)<br>
<br><br>HTH,<br>David<br><br><br><br><div class="gmail_quote">On Sat, Apr 5, 2008 at 4:40 AM, Alin M Elena &lt;<a href="mailto:alin.elena@qub.ac.uk">alin.elena@qub.ac.uk</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-GB">

<div>

<p>Hi,</p>

<p>&nbsp;</p>

<p>I try to create a package for windows using NSIS (2.36) generator
and cmake2.6 RC6</p>

<p>This is the error that I get</p>

<p>&nbsp;</p>

<p>Run CPack packaging tool...</p>

<p>CPack: Create package using NSIS</p>

<p>CPack: Install projects</p>

<p>CPack: - Run preinstall target for: aten</p>

<p>CPack: - Install project: aten</p>

<p>Don&#39;t forget to set ATENDATA to c:/aten/share/aten in your
profile</p>

<p>CPack: Compress package</p>

<p>CPack Error: Problem running NSIS command: &quot;C:/Program
Files/NSIS/makensis.exe&quot; &quot;C:/Users/Alin M Elena/test/_CPack_Packa</p>

<p>ges/win32/NSIS/project.nsi&quot;</p>

<p>Please check C:/Users/Alin M
Elena/test/_CPack_Packages/win32/NSIS/NSISOutput.log for errors</p>

<p>CPack Error: Problem compressing the directory</p>

<p>CPack Error: Error when generating package: aten</p>

<p>NMAKE : fatal error U1077: &#39;&quot;C:\Program
Files\CMake\bin\cpack.exe&quot;&#39; : return code &#39;0x1&#39;</p>

<p>Stop.</p>

<p>&nbsp;</p>

<p>The error is:</p>

<p>Error: unterminated string parsing line at C:/Users/Alin M
Elena/test/_CPack_Packages/win32/NSIS/project.nsi:28^M</p>

<p>Error in script &quot;C:/Users/Alin M
Elena/test/_CPack_Packages/win32/NSIS/project.nsi&quot; on line 28 -- aborting
creation proc</p>

<p>ess^M</p>

<p>&nbsp;</p>

<p>the offending lines (Something seems to be wrong with the
end of line too in the .log file)</p>

<p>&nbsp;</p>

<p>;Include Modern UI</p>

<p>&nbsp;</p>

<p>&nbsp; !include &quot;MUI.nsh&quot;</p>

<p>&nbsp;</p>

<p>27:&nbsp; ;Default installation folder</p>

<p>28: &nbsp;&nbsp;InstallDir &quot;$PROGRAMFILES\aten</p>

<p>30:&nbsp; .&quot;&nbsp; </p>

<p>&nbsp;</p>

<p>;--------------------------------</p>

<p>&nbsp;</p>

<p>And now my section from CMakeLists.txt that deals with cpack</p>

<p>&nbsp;</p>

<p>####################</p>

<p>####install target</p>

<p>####################</p>

<p>&nbsp;</p>

<p>if(NOT ${PREFIX})</p>

<p>MESSAGE(&quot;Install folder ${PREFIX}&quot;)</p>

<p>set(CMAKE_INSTALL_PREFIX &quot;${PREFIX}&quot;)</p>

<p>endif(NOT ${PREFIX})</p>

<p>&nbsp;</p>

<p>install(TARGETS ${target_name}</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNTIME DESTINATION bin</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PERMISSIONS WORLD_EXECUTE)</p>

<p>&nbsp;</p>

<p>install( DIRECTORY&nbsp;
&quot;${CMAKE_HOME_DIRECTORY}/data/filters&quot; </p>

<p>&nbsp;&nbsp;&nbsp;&nbsp; FILE_PERMISSIONS WORLD_READ</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp; DIRECTORY_PERMISSIONS WORLD_EXECUTE</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp; DESTINATION share/aten</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp; REGEX &quot;.svn&quot; EXCLUDE</p>

<p>)</p>

<p>install(CODE</p>

<p>&quot;message(\&quot;Don&#39;t forget to set ATENDATA to
${CMAKE_INSTALL_PREFIX}/share/aten in your profile\&quot;)&quot;</p>

<p>)</p>

<p>&nbsp;</p>

<p>#######################</p>

<p>## uninstall target</p>

<p>#######################</p>

<p>&nbsp;</p>

<p>CONFIGURE_FILE(</p>

<p>&nbsp;
&quot;${CMAKE_CURRENT_SOURCE_DIR}/<a href="http://cmake_uninstall.cmake.in" target="_blank">cmake_uninstall.cmake.in</a>&quot;</p>

<p>&nbsp;
&quot;${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake&quot;</p>

<p>&nbsp; IMMEDIATE @ONLY)</p>

<p>ADD_CUSTOM_TARGET(uninstall</p>

<p>&nbsp; &quot;${CMAKE_COMMAND}&quot; -P
&quot;${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake&quot;)</p>

<p>###########################</p>

<p>&nbsp;</p>

<p>INCLUDE(InstallRequiredSystemLibraries)</p>

<p>SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${DESCRIPTION})</p>

<p>SET(CPACK_PACKAGE_VENDOR ${AUTHOR})</p>

<p>SET(CPACK_PACKAGE_CONTACT ${CPACK_PACKAGE_VENDOR})</p>

<p>SET(CPACK_PACKAGE_DESCRIPTION_FILE
&quot;${CMAKE_CURRENT_SOURCE_DIR}/README&quot;)</p>

<p>SET(CPACK_RESOURCE_FILE_LICENSE &quot;${CMAKE_CURRENT_SOURCE_DIR}/COPYING&quot;)</p>

<p>SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})</p>

<p>SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})</p>

<p>SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})</p>

<p>SET(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;aten</p>

<p>${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}&quot;)</p>

<p>IF(WIN32 AND NOT UNIX)</p>

<p>&nbsp; # There is a bug in NSI that does not handle full
unix paths properly. Make</p>

<p>&nbsp; # sure there is at least one set of four (4)
backlasshes.</p>

<p>&nbsp; SET(CPACK_PACKAGE_ICON
&quot;${CMake_SOURCE_DIR}/src/gui/icons\\\\aten.png&quot;)</p>

<p>&nbsp; SET(CPACK_NSIS_INSTALLED_ICON_NAME
&quot;bin\\\\aten.exe&quot;)&nbsp; </p>

<p>&nbsp; SET(CPACK_NSIS_DISPLAY_NAME
&quot;${CPACK_PACKAGE_INSTALL_DIRECTORY} Aten&quot;)</p>

<p>&nbsp; SET(CPACK_NSIS_HELP_LINK
&quot;http:\\\\\\\\<a href="http://www.projectaten.org" target="_blank">www.projectaten.org</a>&quot;)</p>

<p>&nbsp; SET(CPACK_NSIS_URL_INFO_ABOUT
&quot;http:\\\\\\\\<a href="http://www.projectaten.org" target="_blank">www.projectaten.org</a>&quot;)</p>

<p>&nbsp; SET(CPACK_NSIS_CONTACT
&quot;<a href="mailto:t.youngs@qub.ac.uk" target="_blank">t.youngs@qub.ac.uk</a>&quot;)</p>

<p>&nbsp; SET(CPACK_NSIS_MODIFY_PATH ON)</p>

<p>ELSE(WIN32 AND NOT UNIX)</p>

<p>SET(CPACK_GENERATOR &quot;TGZ;TBZ2;RPM;DEB&quot;)</p>

<p>Endif(WIN32 AND NOT UNIX)</p>

<p>SET(CPACK_PACKAGE_EXECUTABLES &quot;aten.exe&quot;
&quot;aten&quot;)</p>

<p>SET(CPACK_CMAKE_GENERATOR ${CMAKE_GENERATOR})</p>

<p>INCLUDE(CPack)</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>Any thoughts?</p>

<p>Alin</p>

<p>&nbsp;</p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">____________________________________________________________________</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">&quot;...if
the universities will not study useless subjects, who will?&quot;</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
G. F. Fitzgerald, Nature, 45/46, 392 (1892)</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">______________________________________________________________________</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">Mr. Alin
M. ELENA</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">Atomistic
Simulation Centre</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">School
of Mathematics and Physics</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">Queen&#39;s
University Belfast</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">Office:
+44 (0)28 9097 1428</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">Fax: +44
(0)28 9097 5359</span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;"><a href="http://titus.phy.qub.ac.uk/group/Alin/" target="_blank">http://titus.phy.qub.ac.uk/group/Alin/</a></span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;"><a href="mailto:alin.elena@yahoo.co.uk" target="_blank">alin.elena@yahoo.co.uk</a></span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;"><a href="mailto:alin.elena@qub.ac.uk" target="_blank">alin.elena@qub.ac.uk</a></span></p>

<p><span style="font-size: 10.5pt; font-family: Consolas;">______________________________________________________________________</span></p>

<p>&nbsp;</p>

</div>

</div>


<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>