4

I have a program that is built using a WiX project. When the application is installed the first time, I am able to pin it to the taskbar just fine. When an update is installed, the application still works, but the icon in the taskbar turns into the default icon (the file icon), not my program's icon.

While I go into the pinned icon's shortcut properties and click "Change Icon", it gives an error message stating the path can't be found. The path to the icon looks something like this:

"%SystemRoot%\installer{LONG GUID HERE}\ICON.EXE"

That long guid will change with each update release (and by update, I mean changing from version 4.5.5 to 4.5.6). The GUID corresponds to the Product ID in my Product element of the schema, which will never be the same, and updating doesn't update the icon path for icons pinned to the taskbar.

How do I get the icon pinned to the taskbar to update with future updates? Also, How can I set the icon path to point to the location of my executable, which is how other programs like Firefox set their icons? Is this available in WiX?

2
  • What kind of update are you installing? A major upgrade? You can't just install another MSI with a different product code because it will be a different product, and both will be installed - that's not really an update, it's two separate products that share some common files. Commented Jun 7, 2016 at 21:03
  • The installer effectively minor upgrades the software on the PC and does not create a new instance of the software. Everything works fine, except the pinned taskbar icon has the icon path that corresponds to previous version of my software (which is the GUID last generated, since I'm doing Product ID="*" in my WiX installer). If I could hardcode the icon path for pinned icons in my WiX installer project to the executable file, all would be okay with me. Commented Jun 8, 2016 at 23:42

1 Answer 1

0

By the way, I was able to solve this issue by removing the Icon element in my Product.wxs file:

Sign up to request clarification or add additional context in comments.

1 Comment

I'm experiencing the same issue, but I find it hard to believe removing the <Icon /> element fixed this. Can you provide any more details?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.