Page 1 of 1

Launching an app as Administrator

Posted: Wed Jul 20, 2016 11:35 am
by BikashTripathy
How can I launch the AUT as an administrator using Ranorex ? so that I have full access of the application from ranorex.

Re: Launching an app as Administrator

Posted: Wed Jul 20, 2016 11:39 am
by Martin
If i remember correctly this solution worked:

Right click on your project solution. Then under properties select "Create in app manifest". And then add the following to your app.manifest file and comment out the existing same property.

Code: Select all

<requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
* Seems that the manifest can be found/accessed/created under the project properties menu, not the solution properties menu.

+ I believe that the starter/initiator will have to have admin rights as well if you don't want to get the UAC prompt. (You may also disable UAC).