I have 2 applications written in Delphi. The first exe (with a user interface) calls another using ShellExecuteEx(), which runs as a background process.
When the first exe invokes the second, one of these two things happen:
When I log in as an admin, a UAC dialog comes up with the Allow/Cancel prompts. Selecting Allow continues the execution.
If I log in as non-admin, an admin credentials dialog box is displayed, and I need to enter the admin username/password to continue.
On both occasions, I want the second exe to run without any user intervention. How can I make it possible?
And yes, I tried applying the ElevateCreateProcess mitigation as suggested by SUA tool, but it doesn't seem to work - the behaviour is as before.
Thanks for your help.