Lazarus: Compile Application that it is always Run as Administrator
Question by Guest | Last update on 2021-11-02 | Created on 2014-03-15
In Windows, it is possible to right click on an application (EXE) and to select "Run as Administrator" from the context menu.
I would like to compile a program with Lazarus in a way, that it is always and automatically executed with administrator rights. In other words, this information should be directly written into the EXE file.
Is this possible somehow? Thank you very much for your help.
Related Topics
Windows: How to run a Program as Administrator - Once, Always or with Shortcut
Tutorial | 0 Comments
MIME Types of Microsoft Office File Formats
Info | 0 Comments
Delphi: Multiline Caption for TLabel (at Run Time and Design Time)
Tutorial | 1 Comment
Lazarus Application not running on Linux
Question | 2 Answers
Delphi/Lazarus: Command Line Parameter Tutorial Part 1: Sending
Tutorial | 0 Comments
Delphi/Lazarus: Difference between ParamStr(0) and Application.ExeName
Question | 1 Answer
Delphi/Lazarus: How to set up a Link to a Website in an Application
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
No problem. Just got to the project options (Shift+CTRL+F11 or Project > Project Options). There, you can make the settings for this.
Directly on the first page, you can find a drop-down box "Execution Level" standing on "as invoker" by default.
If you change this to "require administrator", your application will always be executed as administrator after you have compiled it.
Last update on 2021-11-02 | Created on 2014-03-16