Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PSADT WinGet BuilderNew to Visual Studio Code? Get it now.
PSADT WinGet Builder

PSADT WinGet Builder

Maciej Horbacz

|
8 installs
| (0) | Free
Build version-pinned PSAppDeployToolkit deployment packages from WinGet using your own trusted template.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PSADT WinGet Builder

Build a version-pinned Windows deployment package from a WinGet catalog entry and a trusted PSAppDeployToolkit template. The wizard runs locally, uses Polish command labels, and lets the operator review the application, publisher, version, installation scope and output folder before writing anything. Generation does not install the application, download its installer or publish to Intune.

Use an existing template

  1. Use Windows x64, VS Code 1.96 or later, and x64 PowerShell 7.4 or later. In that PowerShell, make Microsoft.WinGet.Client and PSAppDeployToolkit (4.2.0 or later, with New-ADTTemplate supporting script blocks) available. The winget source must be accessible. The extension will report missing prerequisites; it does not install them.
  2. Install the extension from the Marketplace or with Extensions: Install from VSIX. If the publisher ID differs from your previous local build, disable or uninstall the old extension first: both register the same commands.
  3. Keep your existing psadtWinget.templatePath, or use PSADT: Select the organization template to select the trusted, locally synced folder. No migration, file rename, bootstrap or copy into this repository is needed. Wait for sync to finish and make the template available offline.
  4. Open a trusted workspace and run PSADT: Create a package from WinGet. Choose an output folder outside the template. The wizard refuses to overwrite a package. Test and approve the generated deployment before use.

The public starter and an existing synced template were tested with PSAppDeployToolkit 4.2.0-rc2. The 4.1.x stable line does not meet the builder's requirement. Keep your team's already-approved installation. On a new machine, if your policy allows that prerelease, an administrator can use Install-Module PSAppDeployToolkit -RequiredVersion 4.2.0-rc2 -AllowPrerelease -Repository PSGallery -Scope CurrentUser in PowerShell 7. Otherwise provision an approved compatible release before using the builder.

The extension reads config.json, AppIcon.png, Banner.Classic.png, InstallScriptBlock.ps1, UninstallScriptBlock.ps1 and the complete unversioned PSAppDeployToolkit.WinGet module folder (including its .psd1 and .psm1). Optional PreInstall, PostInstall, PreUninstall, PostUninstall, PreRepair, Repair and PostRepair hooks use the same ScriptBlock.ps1 suffix. Supplied hooks, assets, module files and configuration come from the selected template, not the extension.

All existing psadtWinget.* settings retain their names and machine scope: templatePath, repositoryPath, powerShellPath, appScriptAuthor, and maxPathLength (default 259). The first two support %ENVIRONMENT_VARIABLE% syntax. For example, a shared configuration can use %OneDriveCommercial%\Deployment\Template without embedding anyone's profile path. The author is written into the generated deployment script; share generated packages accordingly.

Optional packing: with Intune App Sandbox Extension 1.1.0 or later installed, the completion notification offers .intunewin packing and an optional Windows Sandbox test. Neither extension nor a sandbox is required to generate a package.

Try the public starter

From a fresh checkout, in PowerShell 7:

.\tools\Initialize-Starter.ps1
.\test\starter.test.ps1

Select the repository's template folder in the wizard. It contains neutral artwork, five deployment hooks and a sample accent color. The initializer downloads PSAppDeployToolkit.WinGet 1.0.5, checks its SHA-256, preserves its license and installs it only in the starter. It refuses to overwrite an existing module. No customer assets or vendored module binaries are distributed in Git or the VSIX.

To customize it for deployment, copy the prepared starter to a separate private folder. Only select templates from trusted administrators: their hooks run when a generated deployment is executed.

Develop and release

On Windows with Node.js 22 and PowerShell 7.4+, run npm ci and npm test. F5 opens an Extension Development Host. For real package-generation tests, point PSADT_TEST_TEMPLATE at a prepared template and run npm run test:integration. It generates both System and User packages under the temporary directory and compares the template files before and after; it does not execute the generated deployment.

Release setup, Marketplace Trusted Publishing, local VSIX packaging and rollout instructions are in RELEASING.md in the source repository.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft