We have an application which uses an internal update mechanism by downloading our latest setup.exe
to %TEMP%
and executing it afterwards. We use this ShellExecuteW function:
ShellExecuteW(NULL, "open", filePath, parameters, NULL, SW_SHOWNORMAL);
When using this command on a machine without AppLocker configured, and without administrator rights, the setup.exe
will be executed as intended.
With the following settings in AppLocker and trying to do the same when running without administrator rights, the AppLocker blocks the setup.exe
, which is fine. The problem is that nothing happens - it doesn't display a dialog, and there is no information whatsoever for the user, even though the Event Viewer shows that the app was prevented from running.
How can I achieve that at least the error message comes up? Is it even possible to directly start the setup.exe
as administrator, so that the UAC prompt comes up instead?