<html><body><div>The install command looks something like<br><br>macro(InstallTarget TARGET)<br><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp; INSTALL(TARGETS ${TARGET}
</span><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color: rgb(0, 0, 0);">        BUNDLE DESTINATION .<span data-mce-style="margin: 0px; text-indent: 0px;" style="margin: 0px; text-indent: 0px;"></span></span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color: rgb(0, 0, 0);">        RUNTIME DESTINATION .<br>        ARCHIVE DESTINATION .</span><br><span style="color: rgb(0, 0, 0);">        LIBRARY DESTINATION .</span><br></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color: rgb(0, 0, 0);">    )</span></pre>endmacro(InstallTarget)<br><br>.<br>.<br>.<br><br>InstallTarget(MyApp)<br>.<br>.<br><br>InstallTarget(MyLib)<br><br><br>Other files will be installed like the following:<br><br>install(FILES "${CMAKE_SOURCE_DIR}/setup/vcredist_x86.exe<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DESTINATION .<br>)<br></div><div><br><br>If I run the INSTALL target under VS then the files are correctly copied to C:\Program Files\MyProject<br>But only the PACKAGE target under VS doesn't work, and I get the message from the last email I sent.<br><br><br>Best Regards<br><br>Am 09. Mai 2012 um 19:39 schrieb David Cole &lt;david.cole@kitware.com&gt;:<br><br><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch">What do your install commands look like?<br> <br> You're not trying to install files into absolute paths on Windows, are<br> you? (i.e. -- all things should be installed underneath<br> CMAKE_INSTALL_PREFIX in a normal 'make install' tree in order to work<br> well on Windows with the NSIS generator.)<br> <br> <br> <br> On Wed, May 9, 2012 at 1:34 PM, NoRulez &lt;<a href="mailto:norulez@me.com" data-mce-href="mailto:norulez@me.com">norulez@me.com</a>&gt; wrote:<br> &gt; Hello Eric,<br> &gt;<br> &gt; I've found the problem, it was my mistake. A few lines later i overwrote the<br> &gt; CPACK_MODULE_PATH setting. [RESOLVED]<br> &gt;<br> &gt; But what I didn't understand was the fact that it would work on Windows 7<br> &gt; with the same settings.<br> &gt;<br> &gt; So, my custom CPackConfig.cmake.in and my NSIS.template.in seems to work,<br> &gt; but CPack reports that there are not files (*.* under<br> &gt; _CPack_Packages\win32\NSIS\MyProject)<br> &gt; I have install statements for the executable and also for the shared<br> &gt; libraries. What could be the problem?<br> &gt; Do I need a special setting in CPackConfig.cmake.in or in NSIS.tempalte.in<br> &gt; to copy the files into the _CPack_Packages subfolder?<br> &gt;<br> &gt; Thank you for your help<br> &gt;<br> &gt; Best Regards<br> &gt;<br> &gt; Am 08.05.2012 um 15:19 schrieb <a href="mailto:norulez@me.com" data-mce-href="mailto:norulez@me.com">norulez@me.com</a>:<br> &gt;<br> &gt;<br> &gt;&gt; It is only a copy from the original. It doesn't work in windows xp in<br> &gt;&gt; general.<br> &gt;&gt;<br> &gt;&gt; Best Regards<br> &gt;&gt;<br> &gt;&gt; Am 08.05.2012 um 13:51 schrieb Eric Noulard &lt;<a href="mailto:eric.noulard@gmail.com" data-mce-href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;:<br> &gt;&gt;<br> &gt;&gt;&gt; 2012/5/8 &lt;<a href="mailto:norulez@me.com" data-mce-href="mailto:norulez@me.com">norulez@me.com</a>&gt;:<br> &gt;&gt;&gt;&gt; There is no difference with your command. It still uses the<br> &gt;&gt;&gt;&gt; NSIS.template.in file from the CMake installation.<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; Are there any difference between the 2 CPackConfig.cmake files ?<br> &gt;&gt;&gt; WinXP failing case vs Win7 working case?<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; Does the ${CMAKE_SOURCE_DIR}/cmake/NSIS.template.in file has any weird<br> &gt;&gt;&gt; attribute?<br> &gt;&gt;&gt; Is it readable by "normal user"? (you said it works if you are admin<br> &gt;&gt;&gt; right?)<br> &gt;&gt;&gt;<br> &gt;&gt;&gt;&gt; Yes I tried the configurations in new build directories such as build1<br> &gt;&gt;&gt;&gt; ... buildn.<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; I got that but I suspected something in the source tree (where your<br> &gt;&gt;&gt; NSIS.template.in is)<br> &gt;&gt;&gt; so starting from another source tree (taken from your VCS) may exhibit<br> &gt;&gt;&gt; different behavior.<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; If all that fail I'm afraid I cannot help more unless you can build a<br> &gt;&gt;&gt; minimalistic example<br> &gt;&gt;&gt; which shows the wrong behavior.<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; (I have no WinXP at hand but then I may look into the source more<br> &gt;&gt;&gt; thoroughly).<br> &gt;&gt;&gt;<br> &gt;&gt;&gt; --<br> &gt;&gt;&gt; Erk<br> &gt;&gt;&gt; Le gouvernement représentatif n'est pas la démocratie --<br> &gt;&gt;&gt; <a href="http://www.le-message.org" data-mce-href="http://www.le-message.org">http://www.le-message.org</a><br> &gt;&gt; --<br> &gt;&gt;<br> &gt;&gt; Powered by <a href="http://www.kitware.com" data-mce-href="http://www.kitware.com">www.kitware.com</a><br> &gt;&gt;<br> &gt;&gt; Visit other Kitware open-source projects at<br> &gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" data-mce-href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br> &gt;&gt;<br> &gt;&gt; Please keep messages on-topic and check the CMake FAQ at:<br> &gt;&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" data-mce-href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br> &gt;&gt;<br> &gt;&gt; Follow this link to subscribe/unsubscribe:<br> &gt;&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" data-mce-href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br> &gt;<br> &gt; --<br> &gt;<br> &gt; Powered by <a href="http://www.kitware.com" data-mce-href="http://www.kitware.com">www.kitware.com</a><br> &gt;<br> &gt; Visit other Kitware open-source projects at<br> &gt; <a href="http://www.kitware.com/opensource/opensource.html" data-mce-href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br> &gt;<br> &gt; Please keep messages on-topic and check the CMake FAQ at:<br> &gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" data-mce-href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br> &gt;<br> &gt; Follow this link to subscribe/unsubscribe:<br> &gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" data-mce-href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br></div></div></blockquote></div></div></body></html>