A
A
ArturFaizullin2019-01-14 00:46:33
Delphi
ArturFaizullin, 2019-01-14 00:46:33

Winapi how to install run as administrator?

Each executable file can be set in the properties (in the compatibility tab) item as: "Run this program as administrator" How can I set this launch from a Delphi program?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-01-14
@ArturFaizullin

ShellExecute ( Application.Handle , 'RUNAS', '/user:Администратор Notepad', 0, 0, SW_SHOWNORMAL);

Or create the shortcut you need and run it. CreateComObject(CLSID_SHELLLINK)
Working with labels .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question