Is it possible to run the application as an administrator from the Delphi IDE

I am trying to debug an application in Delphi 2007 on a Vista machine. The application was originally written for XP, so it should run with administrator privileges. I know that I could put some information in the manifest or update the code, but I am looking for a quick fix that can be used in all my projects.

Does anyone know if there is an easy way to get Delphi to run the application as an administrator in Vista?

+3
source share
3 answers

I believe that if you run Delphi as an administrator, all child processes will run with the same privileges as Delphi itself.

+6
source

You might think about how your application normally starts up, asking for elevation. It would seem that if you create the application under normal security, and then it appears at an elevated level, you will still debug the elevated executable. Then you will debug the actual use case.

+2
source

Vista . , Delphi .

, Microsoft elevate, .

: , ( , ).

+1
source

Source: https://habr.com/ru/post/1720494/


All Articles