Hi,
Made some research on this and I have only a partial solution, that comes with its disadvantages.
The main problem is that Microsoft offers no API in Windows to pin a shortcut to the taskbar, and also in its guidelines
says that this should
never be done programatically. I know that are installers that can pin a shortcut to the taskbar, but they
are most likely using custom actions with undocumented methods to achieve this.
Now, back to our problem and its solution, which is quite simple. There is a way to design a setup package to maintain a shortcut pinned by the user (manually). For this the package must follow these two rules:
- it must have the option "Install new version and then uninstall old version" from Upgrades page
- the installation path, set from Install Parameters page, must be the same for all versions, i.e. make sure it does not contain "[ProductVersion]" in it, or any other properties that have different values for each new version of your product.
Now you must read carefully the
implications of using "Install new version and then uninstall old version" before jumping on this solution,
to make sure your package supports it.
Regards,
Bogdan