Skip to content

WIN-UPDATER: MSI builds again; Start-menu shortcut drops the explicit Target - #1218

Merged
emmertex merged 1 commit into
mainfrom
fix/msi-shortcut-target
Nov 15, 2026
Merged

emmertex merged 1 commit into
mainfrom
fix/msi-shortcut-target

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Every Windows package (native ARM64) job has failed since #1201 (including on #1203 and #1216):

app-arm64.wxs(203) : error WIX0062: The Shortcut/@Target attribute cannot be specified when the Shortcut element is nested underneath a File element.

Fix: drop Target from the Start-menu shortcut in packaging/windows/app.wxs.in. A non-advertised shortcut (Advertise="no") nested in <File Id="AppExe"> already targets that file's installed path ([#AppExe]), so #1201's intent still holds: a plain shortcut that keeps working after a MajorUpgrade. The removed Target also named [INSTALLDIR], which this template doesn't define (the folder is INSTALLFOLDER).

Verification: the package (native ARM64) job on this PR is the check; there's no WiX locally.

Manual: none, no user-visible change.

🤖 Generated with Claude Code

… Target

WiX rejects Shortcut/@target on a shortcut nested under a File (WIX0062), so
every Windows package job has failed since #1201. A non-advertised shortcut
nested in the File already targets that file's installed path ([#AppExe]), which
keeps #1201's intent (a plain shortcut that survives MajorUpgrades). The old
Target also named [INSTALLDIR], which this template doesn't define.

Manual: none, no user-visible change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex
emmertex enabled auto-merge November 15, 2026 13:14
@emmertex
emmertex disabled auto-merge November 15, 2026 13:34
@emmertex
emmertex merged commit dcd04fd into main Nov 15, 2026
7 of 8 checks passed
@emmertex
emmertex deleted the fix/msi-shortcut-target branch November 15, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant