Menu

#91 Launch4j with applications requiring uiAccess

Future
open
nobody
None
5
2015-05-09
2014-09-26
No

I've been trying to create an app using launch4j that interacts with Windows 7 UAC dialogs - however this is ultimately impossible using launch4j generated wrappers.

Please add a comment to uac.exe.manifest to warn users that setting uiAccess true will have no effect. Simply adding uac.exe.manifest and changing uiAccess true does not work as it appears uiAccess is per executable, its not something that gets passed onto child invocations.

Please change launch4j to generate executables to use ShellExecuteEx instead of CreateProcess, this will allow it to correctly launch a version of javaw.exe with an external manifest that enables uiAccess. Otherwise the exe is launched without the manifest being read apparently according to both my experiments and this http://mfctips.com/2013/01/04/createprocess-fails-to-launch-exe-with-elevated-manifest/

I've written this up in detail on stackoverflow http://stackoverflow.com/questions/25982041/is-it-possible-to-click-on-windows-uac-dialog-using-java-awt-robot

Thanks for such a great project by the way.

Discussion


Log in to post a comment.