[CMake] [CPACK][NSIS] vendor name used in the install directory

Nicolas Desprès nicolas.despres at gmail.com
Thu Oct 23 03:41:10 EDT 2008


Hi all,

I would like to have the default install path in my installer to be
something like:

c:\Program Files\Vendor\ProgName x.y

But the InstallDir in the NSIS template is set to something like that:

InstallDir "$PROGRAMFILES\@CPACK_PACKAGE_INSTALL_DIRECTORY@"

Hacking CPACK_PACKAGE_INSTALL_DIRECTORY to be something like
"Vendor\ProgName x.y" leads to an error on Vista since it claims that
my program has not been installed properly (something similar to
http://www.cmake.org/pipermail/cmake/2008-August/023459.html)

I attach a patch that what I want.

Best regards,

-- 
Nicolas Desprès
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vendor-dir.patch
Type: application/octet-stream
Size: 1820 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081023/7c5223f4/attachment.obj>


More information about the CMake mailing list