Launching an app as Administrator

Ask general questions here.
BikashTripathy
Posts: 3
Joined: Fri Jul 15, 2016 1:19 pm

Launching an app as Administrator

Post by BikashTripathy » Wed Jul 20, 2016 11:35 am

How can I launch the AUT as an administrator using Ranorex ? so that I have full access of the application from ranorex.

Martin
Posts: 152
Joined: Fri Aug 15, 2014 12:24 pm

Re: Launching an app as Administrator

Post by Martin » Wed Jul 20, 2016 11:39 am

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).