sjstreeting
Posts: 26
Joined: Fri May 03, 2013 11:00 am

Pinned application icons get invalidated on update

I'm having the following issue with applications installed with Advanced Installer that are pinned to the taskbar in Win7+ and then updated:
  • Install the application
  • Start the application, right-click on its taskbar icon and select 'Pin this program to the taskbar'
  • Close the application, update it to a new version (major upgrade, so standard installer)
  • Pinned taskbar icon is invalidated, turns into a blank page
  • Unpinning and re-pinning the application resolves this, but this is annoying to users
Does anyone know if there's a way to avoid this?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Pinned application icons get invalidated on update

Hello,

In order to avoid this you can try to use your own custom action (scheduled to run during upgrade) which will pin the application to Taskbar. You can take a look on "Taskbar pinning lost after upgrade" and "Pin the application to task bar" threads which debates similar issues.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjstreeting
Posts: 26
Joined: Fri May 03, 2013 11:00 am

Re: Pinned application icons get invalidated on update

I don't want to always pin the application after installing, I just don't want to break the pinning a user may have already done. Other app installers / updaters manage this, I think this is something you should support out of the box.
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Pinned application icons get invalidated on update

Hello,

I'm afraid we don't have predefined support for this. Maybe this improvement will be available in a future version of Advanced Installer, thank you for your suggestion. Until then, as a workaround, you can try to develop your own custom action in order to achieve this.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjstreeting
Posts: 26
Joined: Fri May 03, 2013 11:00 am

Re: Pinned application icons get invalidated on update

Hrm.

Is there a way to tell if an app is already pinned to the task bar before uninstalling on update, and to use that flag to conditionally un-pin that one and re-pin the newly installed version of the app after install?
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Pinned application icons get invalidated on update

Unfortunately there are no docs we could find on this from Microsoft, we'll have to do some reverse engineering to get more info about how they store information about the pinned applications.
Once we have more information we'll update this post.

I already have this improvement on my list, we'll try to include the support to maintain pinned applications in Advanced Installer ASAP.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjstreeting
Posts: 26
Joined: Fri May 03, 2013 11:00 am

Re: Pinned application icons get invalidated on update

Thanks! FWIW Advanced Installer itself has the same problem (not surprising), I have it pinned to my taskbar :)
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Pinned application icons get invalidated on update

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
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjstreeting
Posts: 26
Joined: Fri May 03, 2013 11:00 am

Re: Pinned application icons get invalidated on update

Thanks for the update. Reading the docs on "Install new version first and then uninstall old version", am I reading it right that if you remove a file from an existing component, you always have to create a manual removal action?

I'm also not sure how to read how it updates existing components. If files are updated or added to a component that is common to both the old and the new installer, will both be installed?
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Pinned application icons get invalidated on update

Hi,
if you remove a file from an existing component, you always have to create a manual removal action?
Yes, this is because Windows Installer evaluates if the component, identified by name an GUID, is gone be installed again by the
new version. To optimize the upgrade it keeps the resources from the old version component on the machine, thus the new installer will finish copying
files faster, as the existent files are skipped.
If files are updated or added to a component that is common to both the old and the new installer, will both be installed?
No, if the files from the new component are newer, have a higher version, Windows Installer should replace the old ones. It keeps from the old version, and skips copying the files from the new package, only if the files are unchanged, i.e. the same. The article on File Versioning rules from MSDN has more details.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dhervieux
Posts: 3
Joined: Tue Mar 20, 2018 2:49 pm

Re: Pinned application icons get invalidated on update

Hello,
I know it's an old thread but we are still having this problem. Is there a way to ask Advanced Installer to not replace the shortcut during the update. I've tried the setting to "Install new version and then uninstall old version" with no success.

Regards
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Pinned application icons get invalidated on update

Hi and welcome to our forums,

I am sorry but there is still no improvement available in this regard, nor I can say if we will manage to address this behavior.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eternal21
Posts: 21
Joined: Mon Aug 15, 2016 5:51 pm

Re: Pinned application icons get invalidated on update

We've just hit the same issue. I'm assuming there still is not a better workaround?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Pinned application icons get invalidated on update

Hi,

Yes, I am afraid this is still a current limitation and it is quite unlikely to find out a resolution in the future.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: Pinned application icons get invalidated on update

It would be nice to have a solution to this issue.
At least it should be possible to update the taskbar to remove the "white-icon" after uninstall the application.

Regards, Éric

Return to “Common Problems”