Skip to content

Comments

Add multi-headed MSIX package sample apps#596

Draft
guimafelipe wants to merge 1 commit intomainfrom
user/felipeda/multi-headed-msix-samples
Draft

Add multi-headed MSIX package sample apps#596
guimafelipe wants to merge 1 commit intomainfrom
user/felipeda/multi-headed-msix-samples

Conversation

@guimafelipe
Copy link

@guimafelipe guimafelipe commented Feb 21, 2026

Summary

  • Adds two sample apps under Samples/MultiHeadedPackage/ demonstrating multiple <Application> elements in a single package manifest
  • cs-winui-msix: WinUI 3 primary app + console secondary app packaged together in one MSIX via single-project packaging
  • cs-wpf-sparse: WPF primary app (with register/unregister/restart UI) + WPF secondary app in one sparse package

These samples support the multi-headed MSIX packaging feature added in WindowsAppSDK (microsoft/WindowsAppSDK#5586).

Description

Multi-headed packages contain multiple <Application> entries in a single Package.appxmanifest. Each application gets its own Start menu tile and can be launched independently, while sharing the same package identity and installation lifecycle.

The MSIX sample uses single-project MSIX packaging. The primary WinUI app owns the manifest and uses $targetnametoken$ tokens. The secondary console app is included via <ProjectReference> with its executable hardcoded in the manifest as SecondaryApp.exe with EntryPoint="Windows.FullTrustApplication". After deployment, both apps appear as separate Start menu entries.

The sparse sample demonstrates the same multi-headed pattern with runtime-registered sparse packages. The primary WPF app provides Register/Unregister/Restart buttons using PackageManager.AddPackageByUriAsync. The secondary WPF app uses GetCurrentPackageFullName to detect whether it has package identity, which it will once the sparse package is registered.

🤖 Generated with Claude Code

Add two sample apps demonstrating multiple Application elements in a
single package manifest, supporting the multi-headed MSIX packaging
feature (WindowsAppSDK #5586):

- cs-winui-msix: WinUI 3 primary app + console secondary app in one
  MSIX package via single-project packaging
- cs-wpf-sparse: WPF primary app with register/unregister UI + WPF
  secondary app in one sparse package

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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