[CMake] CPack with NSIS
David Cole
david.cole at kitware.com
Tue Mar 31 11:04:32 EDT 2009
According to CMake/Modules/NSIS.template.in : ;Default installation folder
InstallDir "$PROGRAMFILES\@CPACK_PACKAGE_INSTALL_DIRECTORY@"
So set the variable CPACK_PACKAGE_INSTALL_DIRECTORY to be "Vendor\Package"
like this:
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "Vendor\\Package")
Then set the variable CPACK_NSIS_DISPLAY_NAME to be just "Package" if you
want:
SET(CPACK_NSIS_DISPLAY_NAME "Package")
(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 NSIS.template.in
.)
HTH,
David
On Tue, Mar 31, 2009 at 10:50 AM, Robert Bielik <robert.bielik at xponaut.se>wrote:
> I'm trying to use CPack to install a target at:
>
> C:\Program Files\<Vendor>\<Package>
> but it seems that CPack only allows me to do:
>
> C:\Program Files\<Package>
> Any ideas how to create that extra directory hierarchy?
>
> TIA
> /Rob
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090331/e71d8ec5/attachment.htm>
More information about the CMake
mailing list