<div class="gmail_quote">On Fri, Apr 16, 2010 at 8:37 AM, Yegor Yefremov <span dir="ltr"><<a href="mailto:yegor_sub1@visionsystems.de">yegor_sub1@visionsystems.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I need to install some configuration files to application data directory. I found following variable in NSIS docs (<a href="http://nsis.sourceforge.net/Docs/Chapter4.html" target="_blank">http://nsis.sourceforge.net/Docs/Chapter4.html</a>) as $APPDATA:<br>
<br>
"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."<br>
<br>
So how can I specify this folder as install()'s DESTINATION?</blockquote><div><br>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.<br>
<br>You can specify your own <a href="http://NSIS.template.in">NSIS.template.in</a> file if you need to, and customize it to do something like this.<br><br>( See this old email thread for more details about overriding <a href="http://NSIS.template.in">NSIS.template.in</a>: <a href="http://www.cmake.org/pipermail/cmake/2007-January/012649.html">http://www.cmake.org/pipermail/cmake/2007-January/012649.html</a> )<br>
<br><br>HTH,<br>David<br><br></div></div>