Skip to content

Pinned shortcut icon disappears on upgrade #11995

@heaths

Description

@heaths

When upgrading from v7 RC to RC, my pinned pwsh.exe shortcut on the taskbar (pinned from the shortcut you create) disappears. This is because Windows Installer icons via WiX's <Icon> element get random GUIDs that change from release to release. As a former WiX dev and looong-time setup dev, we recommended people away from those icons and other advertised features because of various problems like this.

You can still use it if you want to customize your Add/Remove Programs (ARP) entry like you do via ARPPRODUCTICON, but don't set the Shortcut@Icon property to it. Instead, omit the @Icon attribute and it will default to the first icon index in the target EXE instead of a cached path to the Windows Installer cache that will change from release to release as you rebuild your MSI.

Metadata

Metadata

Assignees

Labels

Area-Maintainers-Buildspecific to affecting the buildIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions