I have a problem where the Windows 8 User Account Control (UAC) popup is minimized when I run a command line helper program that asks for administrator privileges in my manifest. The UAC popup simply blinks yellow on the Windows taskbar, which confuses the user:

After clicking the icon on the taskbar, a UAC warning appears:

On Windows 7, the UAC warning is not minimized, but is displayed in the foreground. Any thoughts on how to fix this in Windows 8?
For reference, my main application runs under user privilege and runs a helper program using ShellExecuteEx . I set ShellExecuteEx TShellExecuteInfo.nShow to SW_SHOW .
exe windows delphi uac shellexecuteex
spurgeon
source share