how to create a winget package
Created on: June 17, 2025
Created on: June 17, 2025
how to create a winget package
Creating a Winget package involves packaging your software in a structured YAML manifest file that Winget can read and install. Here's a step-by-step guide:
powershellwinget --version
powershellwinget install wingetcreate
wingetcreate
to generate your package manifest interactively:
powershellwingetcreate new <URL_of_installer>
PublisherName.AppName
)/silent
, /quiet
, /S
vary by installer)The command above generates YAML files (Installer.yaml
, Locale.yaml
, Version.yaml
). Review and modify details as needed:
Example YAML snippet:
yamlPackageIdentifier: YourCompany.YourApp PackageVersion: 1.0.0 Installers: - Architecture: x64 InstallerType: msi InstallerUrl: https://yourdomain.com/installer.msi InstallerSha256: <calculated_sha256_hash> ManifestType: installer ManifestVersion: 1.5.0
Validate your manifest using:
powershellwinget validate <path_to_manifest_files>
manifests/<publisher>/<application>/<version>
).powershellwinget install YourCompany.YourApp
powershellwinget install -m <path_to_manifest_files>
By following these steps, you’ll effectively create and distribute a Winget package.