With this InnoSetup feature, it will automatically allow pinning and grouping when it detects the same AppUserModelID name. ![]() Shell32.SetCurrentProcessExplicitAppUserModelID(name) The following code is still needed to tell Windows 7 that this application process shares the same AppUserModelID as the Windows-7 compatible shortcut created by InnoSetup //name: must match AppUserModelID name set in an entry under section It seems that InnoSetup has provided support for Windows 7 Jump List since version 5.3.5 by using AppUserModelID parameter for an entry under is really a life-saver to this annoying issue. Solution in SO: Using JNA to get/set application identifier This library claims that it can correctly pin Java application to the Windows 7 taskbar with the right icon and name. I'd really appreciate any guidance that could help me to solve this nagging issue! I'm always plagued by these stupid little aesthetic issues that can be such a pain to solve.ĮDIT: The problem was solved by switching to an ANSI build of NSIS, as recommended by Anders after I was unable to verify that the shortcut's AppModelUserID was in fact being set properly. jar file, but then there's the hassle of trying to implement the JRE install into NSIS and a ton of other headaches I've already been through and am trying to avoid. At this point, I'm unable to check whether I've set the shortcut properties properly, because there doesn't seem to be a tool to check what the AppModelUserID is of a given shortcut.Įverything works fine when I just create a shortcut directly to the. The application still opens in a separate pinned icon. Specifically, the call mirrors the example of: WinShell::SetLnkAUMI "$SMPrograms\MyApp\MyApp.lnk" "$" Since I'm using NSIS as my installer, I used the WinShell plugin to set the properties of the application shortcut upon install. but that's where that solution stops! I don't think it's the end of it because it sure doesn't fix the problem for me! It would appear that what's also required is a shortcut that's been created that has the same AppModelUserID - this is my interpretation of the MSDN documentation. ![]() Calling the 'get' function returns the value that I set for it, so everything appears to be OK on the application side. Once you enable this option, you can see the Taskbar on all the monitors. Scroll down until you see Multiple Display, Under Multiple display toggle the Switch on for show taskbar on all displays. Right-click on the Taskbar and choose Taskbar settings. ![]() I successfully got the JNA code being called within my application as per the example given there, and it would appear that I'm setting it properly to a value of the form "M圜ompany.MyApp". First, make sure you are connected to the dual monitor, and it’s working fine. That would explain why the icon is getting duplicated - Launch4j is calling a separate process of javaw.exe, and it looks like the AppModelUserID gets confused when you start doing stuff like that.Īccording to this post, the solution is to specify your AppModelUserID through some native code. I'm having a problem wherein when I pin a taskbar icon in Windows 7 for my application, clicking the icon opens up a separate (duplicate) icon for the program instead of keeping it grouped with the shortcut used to call it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |