Windows shortcut does not display correctly on taskbar until reboot

When my MSI upgrade installation is complete, all the shortcuts immediately work as expected, except that the label on the taskbar refers to the binary executable, instead of specifying the link (and icon). After the reboot, the link works correctly.

In particular: in the context menu of the icon on the taskbar, the top-level entry (that is, the name of the program) is displayed as "pythonw.exe". After a reboot, it (correctly) displays as "IDLE (Python GUI)". For some reason, Windows doesn't seem to remember that it ran the program from a shortcut until the system reboots. (see bug report )

As a result, the wrong icon is displayed, and users cannot attach the icon to the taskbar (rather, the binding will attach the executable file, not the shortcut).

What causes this problem? Is there anything in my installer that I could do to fix this? I would prefer not to restart the users, as everything else works fine without a reboot.

+6
source share
1 answer

"1. Press Ctrl-Shift-Escape to get the task manager.

  • On the Processes tab, click explorer.exe and click End Process. A confirmation dialog box appears. Click "End Process" to confirm.

  • From the File menu (still in the task manager), select New Task (Run ...).

  • Copy / paste / enter the following command into the launch field: Code: cmd / c del% userprofile% \ AppData \ Local \ IconCache.db / a

  • Open the Run window again using File β†’ New Task (Run ...). This time enter this command: Code: explorer.exe

  • Everything should be fine. Open the Start menu and confirm that your icons are now fixed. "

This fixes such problems, maybe your installer might have damaged something in the iconcache.db file, is it possible that I want your installer to restore the icon cache after installation? Kind of hacking, but this is the best I can think of

+2
source

Source: https://habr.com/ru/post/946203/


All Articles