According to CMake/Modules/<a href="http://NSIS.template.in">NSIS.template.in</a> :<div><div> ;Default installation folder</div><div> InstallDir "$PROGRAMFILES\@CPACK_PACKAGE_INSTALL_DIRECTORY@" </div><div><br>
</div><div>So set the variable CPACK_PACKAGE_INSTALL_DIRECTORY to be "Vendor\Package" like this:</div><div> SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Vendor\\Package")</div><div><br></div><div>Then set the variable CPACK_NSIS_DISPLAY_NAME to be just "Package" if you want:</div>
<div> SET(CPACK_NSIS_DISPLAY_NAME "Package")<br></div><div><br></div><div>(The CPACK_NSIS_DISPLAY_NAME variable defaults to the same as CPACK_PACKAGE_INSTALL_DIRECTORY, but you probably don't want the "Vendor\\" in the display name, which is used elsewhere in <a href="http://NSIS.template.in">NSIS.template.in</a>.)</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br></div><div class="gmail_quote">On Tue, Mar 31, 2009 at 10:50 AM, Robert Bielik <span dir="ltr"><<a href="mailto:robert.bielik@xponaut.se">robert.bielik@xponaut.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm trying to use CPack to install a target at:<br>
<br>
C:\Program Files\<Vendor>\<Package> <br>
but it seems that CPack only allows me to do:<br>
<br>
C:\Program Files\<Package> <br>
Any ideas how to create that extra directory hierarchy?<br>
<br>
TIA<br>
/Rob<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/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/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/listinfo/cmake</a><br>
</blockquote></div><br></div>