<div dir="ltr">Hello David,<br><br>I will try to get this working and tested within the next couple days.<br><br>Thanks a ton, I really appreciate it!<br>Mark<br><br><div class="gmail_quote">On Wed, Aug 20, 2008 at 11:13 AM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">It would probably be a pain, but you could always use the "mt" 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 "setup" in its name as a non-privileged user with this command:</div>
<div><div> ADD_CUSTOM_COMMAND(TARGET CMakeSetup</div><div> POST_BUILD COMMAND mt</div><div> "${_CMAKE_INPUT_RESOURCE}"</div><div> -manifest "${CMAKE_CURRENT_SOURCE_DIR}/CMakeSetupManifest.xml"</div>
<div> "-outputresource:${exe};#1"</div><div> ${verbatim_flag}</div><div> )</div><div><br></div></div><div>And CMakeSetupManifest.xml looks like this:</div><div><div><?xml version="1.0" encoding="UTF-8" standalone="yes"?></div>
<div><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"></div><div><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"></div><div> <security></div><div>
<requestedPrivileges></div><div> <requestedExecutionLevel level="asInvoker"/></div><div> </requestedPrivileges></div><div> </security></div><div></trustInfo></div><div>
</assembly></div><div><br></div></div><div>I can't think of an easier way to do it. Maybe this is a good question for the NSIS community? If there's a way to do it via NSIS script, we could add it into CPack'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"><div><div></div><div class="Wj3C7c">On Wed, Aug 13, 2008 at 11:02 AM, Mark Turney <span dir="ltr"><<a href="mailto:markturney@gmail.com" target="_blank">markturney@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><div dir="ltr">Hello,<br><br>I'm working on a C++/Boost/QT4 application for unix, osx, and windows. I am currently using cpack / nsis to create the installer for windows.<br>
<br>During installation on Vista, I am given a dialog titled "This program might not have installed correctly" that supplies two user options "Reinstall using recommended settings" or "This program installed correctly".<br>
<br>After doing some research, it looks like this is a Vista UAC issue being addressed by the nsis folks. 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></div></div>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">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>
</blockquote></div><br></div>