On Fri, Apr 16, 2010 at 8:37 AM, Yegor Yefremov <yegor_s...@visionsystems.de > wrote:
> I need to install some configuration files to application data directory. I > found following variable in NSIS docs ( > http://nsis.sourceforge.net/Docs/Chapter4.html) as $APPDATA: > > "The application data directory. Detection of the current user path > requires Internet Explorer 4 and above. Detection of the all users path > requires Internet Explorer 5 and above. The context of this constant (All > Users or Current user) depends on the SetShellVarContext setting. The > default is the current user." > > So how can I specify this folder as install()'s DESTINATION? You can't. You'd have to write special NSIS code yourself to put files into $APPDATA. The CMake install command assumes you're going to be installing into the program's install tree, or use an absolute known-in-advance path. You can specify your own NSIS.template.in file if you need to, and customize it to do something like this. ( See this old email thread for more details about overriding NSIS.template.in: http://www.cmake.org/pipermail/cmake/2007-January/012649.html ) HTH, David
_______________________________________________ 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