<html><body><div>The install command looks something like<br><br>macro(InstallTarget TARGET)<br><span style="color: rgb(0, 0, 0);"> 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> 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 <david.cole@kitware.com>:<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 <<a href="mailto:norulez@me.com" data-mce-href="mailto:norulez@me.com">norulez@me.com</a>> wrote:<br> > Hello Eric,<br> ><br> > I've found the problem, it was my mistake. A few lines later i overwrote the<br> > CPACK_MODULE_PATH setting. [RESOLVED]<br> ><br> > But what I didn't understand was the fact that it would work on Windows 7<br> > with the same settings.<br> ><br> > So, my custom CPackConfig.cmake.in and my NSIS.template.in seems to work,<br> > but CPack reports that there are not files (*.* under<br> > _CPack_Packages\win32\NSIS\MyProject)<br> > I have install statements for the executable and also for the shared<br> > libraries. What could be the problem?<br> > Do I need a special setting in CPackConfig.cmake.in or in NSIS.tempalte.in<br> > to copy the files into the _CPack_Packages subfolder?<br> ><br> > Thank you for your help<br> ><br> > Best Regards<br> ><br> > 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> ><br> ><br> >> It is only a copy from the original. It doesn't work in windows xp in<br> >> general.<br> >><br> >> Best Regards<br> >><br> >> Am 08.05.2012 um 13:51 schrieb Eric Noulard <<a href="mailto:eric.noulard@gmail.com" data-mce-href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>>:<br> >><br> >>> 2012/5/8 <<a href="mailto:norulez@me.com" data-mce-href="mailto:norulez@me.com">norulez@me.com</a>>:<br> >>>> There is no difference with your command. It still uses the<br> >>>> NSIS.template.in file from the CMake installation.<br> >>><br> >>> Are there any difference between the 2 CPackConfig.cmake files ?<br> >>> WinXP failing case vs Win7 working case?<br> >>><br> >>> Does the ${CMAKE_SOURCE_DIR}/cmake/NSIS.template.in file has any weird<br> >>> attribute?<br> >>> Is it readable by "normal user"? (you said it works if you are admin<br> >>> right?)<br> >>><br> >>>> Yes I tried the configurations in new build directories such as build1<br> >>>> ... buildn.<br> >>><br> >>> I got that but I suspected something in the source tree (where your<br> >>> NSIS.template.in is)<br> >>> so starting from another source tree (taken from your VCS) may exhibit<br> >>> different behavior.<br> >>><br> >>> If all that fail I'm afraid I cannot help more unless you can build a<br> >>> minimalistic example<br> >>> which shows the wrong behavior.<br> >>><br> >>> (I have no WinXP at hand but then I may look into the source more<br> >>> thoroughly).<br> >>><br> >>> --<br> >>> Erk<br> >>> Le gouvernement représentatif n'est pas la démocratie --<br> >>> <a href="http://www.le-message.org" data-mce-href="http://www.le-message.org">http://www.le-message.org</a><br> >> --<br> >><br> >> Powered by <a href="http://www.kitware.com" data-mce-href="http://www.kitware.com">www.kitware.com</a><br> >><br> >> Visit other Kitware open-source projects at<br> >> <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> >><br> >> Please keep messages on-topic and check the CMake FAQ at:<br> >> <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> >><br> >> Follow this link to subscribe/unsubscribe:<br> >> <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> ><br> > --<br> ><br> > Powered by <a href="http://www.kitware.com" data-mce-href="http://www.kitware.com">www.kitware.com</a><br> ><br> > Visit other Kitware open-source projects at<br> > <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> ><br> > Please keep messages on-topic and check the CMake FAQ at:<br> > <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> ><br> > Follow this link to subscribe/unsubscribe:<br> > <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>