Forum Discussion

nixonca's avatar
14 years ago

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