Better yet: do not install anything to System32. Ever. There&#39;s no need for it.<br><br>That&#39;s been a best-practice install technique for at least 10 years now.<br><br><br><div class="gmail_quote">On Thu, May 12, 2011 at 2:28 AM, Rolf Eike Beer <span dir="ltr">&lt;<a href="mailto:eike@sf-mail.de">eike@sf-mail.de</a>&gt;</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;"><div><div></div><div class="h5">&gt; Hello,<br>
&gt;<br>
&gt; actual I&#39;m struggling with CMAKE INSTALL command on Windows Vista, when<br>
&gt; I try to copy the resulting DLL to the system32 folder using this<br>
&gt; command:<br>
&gt;<br>
&gt; INSTALL(FILES ${CMAKE_SOURCE_DIR}/lib/lib${LIBRARY_NAME}.dll DESTINATION<br>
&gt; $ENV{SYSTEMROOT}/System32/)<br>
&gt;<br>
&gt; On XP this command could be used without any failure. On Vista i got the<br>
&gt; error message that the dll could not copied. It seems to me that cmake<br>
&gt; has not the permission to execute this command running the script from<br>
&gt; my MSYS/MinGW environment.  Is it possible to give cmake those<br>
&gt; permissions on install command?<br>
<br>
</div></div>Put your install command in a script an then &quot;run as Administrator&quot;?<br>
<br>
Eike<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>