Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat do I need to do to make sure my app launches as Admin?
    primarykey
    data
    text
    <p>I'm writing an app that allows you to script the buttons from a wiimote into actions on your PC. It currently supports all of the features of the main remote control, except for the speaker.</p> <p>Now, I'm running in to trouble when I run it on Vista with UAC turned on.</p> <p>Any time a UAC'd window has focus, my app fails to move the mouse successfully. For instance, when an installer is run, I have to navigate it with the keyboard.</p> <ol> <li><p><s>Will running the app as administrator solve my problem?</s> (At one point in time, I was able to successfully move the mouse over a UAC-password-entry box)</p></li> <li><p><s>How do I build a manifest that will tell windows to "run as administrator"?</s></p></li> <li><p><strong>How do I embed this manifest into my app, if I'm strongly naming my assembly?</strong></p></li> <li><p><strong>How do I sign my application with an Authenticode cert?</strong></p></li> </ol> <p>EDIT:</p> <p>Ok, so after some more extensive research, I have found:</p> <p><a href="http://msdn.microsoft.com/en-us/library/bb756929.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/bb756929.aspx</a></p> <pre><code>&lt;requestedExecutionLevel level="asInvoker|highestAvailable|requireAdministrator" uiAccess="true|false"/&gt; </code></pre> <p>However, the article says:</p> <blockquote> <p>Applications with the uiAccess flag set to true must be Authenticode signed to start properly. In addition, the application must reside in a protected location in the file system. \Program Files\ and \windows\system32\ are currently the two allowable protected locations.</p> </blockquote> <p>I have edited the question to reflect the new developments.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload