Is it possible to 'Pin to start menu' using Inno Setup?

前端 未结 3 1871
轮回少年
轮回少年 2020-12-06 07:04

I\'m using the excellent Inno Setup installer and I notice that some Applications (often from Microsoft) get installed with their launch icon already highly visible (\'pinne

3条回答
  •  醉酒成梦
    2020-12-06 07:19

    There's a reason there's no programmatic way to pin things to the taskbar/start menu. In my experience, I have seen the start menu highlight newly-created shortcuts, and that's designed to handle exactly this situation. When you see a newly-installed program show up on the start menu, it's probably because of that algorithm and not because the installer placed it there.

    That said, if a new shortcut does not appear highlighted, it may be because the installer extracts a pre-existing shortcut and preserves an old timestamp on it, rather than using the API function to create a shortcut in the start menu.

提交回复
热议问题