When my MSI package upgrade installation is completed, all shortcuts immediately work as expected, except that the label in the taskbar refers to the binary being executed, rather than giving the shortcut link (and icon). After a reboot, the link works correctly.
More specifically: in the context menu of the icon in the task bar, the toplevel entry (i.e. the program name) displays as "pythonw.exe". After the reboot, it (correctly) displays as "IDLE (Python GUI)". It appears as if Windows somehow cannot remember that it launched the program from a shortcut, until the system is rebooted. (see bug report)
As a consequence, the incorrect icon is displayed, and users cannot pin the icon to the taskbar (rather, pinning would pin the executable, not the shortcut).
What is causing this problem? Is there something in my installer I could do to fix it? I'd rather avoid having users reboot the system, since everything else works fine without a reboot.