---
name: configure-msix-packaging
description: Packs a desktop build into an MSIX with winapp package, signed for sideload or left unsigned for a store handoff. Use when the user wants an MSIX installer, a sideload package, or to keep signing out of the command.
license: MIT
metadata:
  category: apps
  tags: "desktop,electron,tauri,windows"
  author: johnny-bravo
  version: "1.0"
  updated: "2026-11-09"
  status: published
  aliases: "winapp-package, MSIX, Add-AppxPackage, sideload"
  source_url: "https://github.com/microsoft/winappcli/tree/28d0dcdb2c65c2843541f4de7afb42dd27caa266/plugins/winapp/skills/winapp-package"
  source_license: MIT
  copyright: "Copyright (c) Microsoft Corporation and Contributors."
  original_author: "Microsoft Corporation and Contributors (microsoft/winappcli, winapp-package; frameworks notes from winapp-frameworks)"
  modified: "Adapted by TheSkillVault: rewritten as a short MSIX pass (build first, sign for sideload, unsigned for a store handoff, runtime bundle); dropped the per-framework command catalogue and CI samples. Independent how-to, not official Microsoft documentation. No package was built or signed for this library."
  imported_on: "2026-11-09"
---

# Configure MSIX packaging

An MSIX is the installer. It is not the UI toolkit. Build the binaries first, then pack them.

## When to use
- The user wants an installer other people can sideload.
- A store handoff must be unsigned so signing happens later.
- Electron, Tauri, .NET, or MAUI output needs a package file.

## When not to use
- The need is a WinUI page, theme brushes, or x:Bind. That is a separate skill.
- The need is Mac notarization. That is a separate skill.
- The product is a website.

## Steps
1. Produce the build output first. `winapp package` packs that output or a project file. It does not design the UI.
2. For a sideload build, sign in the same command with a dev certificate. Do not also pass `--no-sign`.
3. For a store handoff, pass `--no-sign` and do not attach a certificate. Someone else signs that package.
4. Read the pack path through, then choose signed or unsigned. A self-contained package can include that SDK runtime only when the project already references it.
5. Trusting a dev certificate is an admin step. Ask first. Install with Add-AppxPackage only after that trust exists.
6. Record the signed or unsigned choice in the README.md the repo already keeps. Electron, Tauri, .NET, and MAUI differ in where the binaries land. Point `winapp package` at that folder or at the project file. Do not guess the path.

## Gotchas
- Do not include certificate passwords, tokens, or private identity values in the repo or in sample commands.
- `--no-sign` and a certificate flag together are rejected. Pick a single path.
- Signing an MSIX that already exists is a different command. This skill packs a new file.
- This is an independent how-to adapted from Microsoft's skill. It is not official documentation. No package was built, signed, installed, or submitted for this library.

## Portability
If you use Electron or Tauri, the same pack command applies once the binaries exist. If you use .NET or MAUI, you can point the command at the project file. If you use WinUI only for the page, return to the WinUI skill for the UI.

## Done when
- The package command points at real build output or a real project file.
- Sideload builds are signed, and store handoffs are unsigned, not both.
- Certificate material stayed out of the repo.

## Example prompt
"Pack this Electron build as an MSIX for sideload, signed with the dev certificate. Do not submit it anywhere."

---
Adapted from "winapp-package" and "winapp-frameworks" by Microsoft Corporation and Contributors in microsoft/winappcli (MIT). See LICENSE.txt.
