According to CMake/Modules/<a href="http://NSIS.template.in">NSIS.template.in</a> :<div><div>  ;Default installation folder</div><div>  InstallDir &quot;$PROGRAMFILES\@CPACK_PACKAGE_INSTALL_DIRECTORY@&quot;  </div><div><br>
</div><div>So set the variable CPACK_PACKAGE_INSTALL_DIRECTORY to be &quot;Vendor\Package&quot; like this:</div><div>  SET(CPACK_PACKAGE_INSTALL_DIRECTORY &quot;Vendor\\Package&quot;)</div><div><br></div><div>Then set the variable CPACK_NSIS_DISPLAY_NAME to be just &quot;Package&quot; if you want:</div>
<div>  SET(CPACK_NSIS_DISPLAY_NAME &quot;Package&quot;)<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&#39;t want the &quot;Vendor\\&quot; 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">&lt;<a href="mailto:robert.bielik@xponaut.se">robert.bielik@xponaut.se</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;m trying to use CPack to install a target at:<br>
<br>
C:\Program Files\&lt;Vendor&gt;\&lt;Package&gt; <br>
but it seems that CPack only allows me to do:<br>
<br>
C:\Program Files\&lt;Package&gt; <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>