Windows 7 SetCurrentProcessExplicitAppUserModelID
Brought to you by:
grzegok
The Shell32.dll SetCurrentProcessExplicitAppUserModelID function is used to associate the application with the task bar item in Windows 7. As I understand it, when "pinning" the application to the toolbar, it would use the launch4j application name instead of java.exe. See http://stackoverflow.com/questions/1834599/pinning-a-java-application-to-the-windows-7-taskbar. Making the SetCurrentProcessExplicitAppUserModelID call from the launcher executable would be easier than a JNI or JNA call from Java.
+1
This was my follow up post to this topic on stackoverflow: http://stackoverflow.com/questions/9910587/pinning-a-java-executable-with-launch4j-to-the-windows-7-taskbar
Would be great to have this as a feature in launch4j.
This might also be related to Bug #3353972 ( https://sourceforge.net/tracker/?func=detail&aid=3353972&group_id=95944&atid=613100 ).
Probably it works if the custom process name wouldn't fail...
+1
Support for this would greatly simplify things on my end.