<div dir="ltr">It would probably be a pain, but you could always use the &quot;mt&quot; tool to merge manifest info into the built installer after it comes out of CPack.<div><br></div><div>We do post-build processing on CMakeSetup.exe to add a manifest snippet that allows executing a program with the string &quot;setup&quot; in its name as a non-privileged user with this command:</div>
<div><div>&nbsp;&nbsp;ADD_CUSTOM_COMMAND(TARGET CMakeSetup</div><div>&nbsp;&nbsp; &nbsp;POST_BUILD COMMAND mt</div><div>&nbsp;&nbsp; &nbsp;&quot;${_CMAKE_INPUT_RESOURCE}&quot;</div><div>&nbsp;&nbsp; &nbsp;-manifest &quot;${CMAKE_CURRENT_SOURCE_DIR}/CMakeSetupManifest.xml&quot;</div>
<div>&nbsp;&nbsp; &nbsp;&quot;-outputresource:${exe};#1&quot;</div><div>&nbsp;&nbsp; &nbsp;${verbatim_flag}</div><div>&nbsp;&nbsp;)</div><div><br></div></div><div>And CMakeSetupManifest.xml looks like this:</div><div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;</div>
<div>&lt;assembly xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot; manifestVersion=&quot;1.0&quot;&gt;</div><div>&lt;trustInfo xmlns=&quot;urn:schemas-microsoft-com:asm.v3&quot;&gt;</div><div>&nbsp;&nbsp;&lt;security&gt;</div><div>
&nbsp;&nbsp; &nbsp;&lt;requestedPrivileges&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;requestedExecutionLevel level=&quot;asInvoker&quot;/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/requestedPrivileges&gt;</div><div>&nbsp;&nbsp;&lt;/security&gt;</div><div>&lt;/trustInfo&gt;</div><div>
&lt;/assembly&gt;</div><div><br></div></div><div>I can&#39;t think of an easier way to do it. Maybe this is a good question for the NSIS community? If there&#39;s a way to do it via NSIS script, we could add it into CPack&#39;s default NSIS script, or at least tell you how to hook it in... Let us know if the NSIS community gives you any other info...</div>
<div><br></div><div><br></div><div>HTH,</div><div>David Cole</div><div><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 11:02 AM, Mark Turney <span dir="ltr">&lt;<a href="mailto:markturney@gmail.com">markturney@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Hello,<br><br>I&#39;m working on a C++/Boost/QT4 application for unix, osx, and windows.&nbsp; I am currently using cpack / nsis to create the installer for windows.<br>
<br>During installation on Vista, I am given a dialog titled &quot;This program might not have installed correctly&quot; that supplies two user options &quot;Reinstall using recommended settings&quot; or &quot;This program installed correctly&quot;.<br>

<br>After doing some research, it looks like this is a Vista UAC issue being addressed by the nsis folks.&nbsp; Here is a page covering the latest approach to a fix that I can find:<br><a href="http://nsis.sourceforge.net/UAC_plug-in" target="_blank">http://nsis.sourceforge.net/UAC_plug-in</a><br>

<br>Does anyone know of a cpack oriented fix, or is there currently a way within cpack to set the RequestExecutionLevel within the generated NSIS script?<br><br>Thanks a ton,<br>Mark<br></div>
<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div></div>