Ask a Question

Run my application with administrator privillage in Windows 7

nixonca
Not applicable

Run my application with administrator privillage in Windows 7



Hi,



I have an MFC application which access registry that works properly in Windows XP, and I used to test the same using

test complete.

In Win 7 my application require administrative privilege for proper functioning. I modify the properties to run the

application with administrator privilege and it works fine.



But using test complete I can't the run application with admin privilege. Application run with a standard user privilege and failed to initialize. I tried an option in test complete "Run as administrator", but it also get failed.



Is there any option to run my application with administrator privilege.



For running the application I import my exe from the installed path and using the following code piece



 var ApplicationObj = eval("TestedApps." + vProcessName);

 ApplicationObj.Run();  



Thanks & Regards,

Nixon
1 REPLY 1
YMinaev
Staff

Hi,



Try launching TC as administrator.
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: