Installing Winget using Microsoft Intune and Pckgr

We’ve been focusing on the Winget Pre-Install deployment. For those unfamiliar, the Winget Pre-Install is used to bootstrap Winget onto Windows during initial setup. This ensures Winget is functional before deploying any applications, as almost all applications from Pckgr rely on it.

Updating the Pipeline
We’ve created a new Azure pipeline that updates the Winget Pre-Install installer files directly within Intune. This enables us to refresh the Winget Pre-Install files without the need for a new deployment. Otherwise, creating a new deployment would require removing the existing Winget Pre-Install as a dependency from deployed applications, then reapplying the new version, which is a complex process.

Improved the Winget Pre-Install Script

The Winget Pre-Install script has been greatly improved, thanks to the efforts of Asheroto, who has refined the bootstrap process. We’ve further modified this script to integrate with Pckgr and Intune, enabling the SYSTEM account to utilize Winget seamlessly.

Improve the Detection

We’ve also refined the detection script to manage multiple versions of Winget installed on a device. It now sorts and identifies the latest version, confirming it is functional and meets the necessary version level.

Do I need to update?

Not necessarily. If the Winget Pre-Install has been working effectively during Autopilot or the initial build, there’s no urgency to update. However, as Pckgr has grown, we’ve observed that different device builds can impact Winget’s performance. To address this, we’ve adapted our script to account for these anomalies. If you’re encountering issues with the Winget Pre-Install, we recommend applying the update.

How do I run the update?

To run the update, follow these steps:

  1. Access the Application Library in Pckgr
  2. Find the Winget Pre-Install and select the 3 dot menu
  3. Select the “Update Winget Pre-Install button.
  4. Wait for the update to complete and the status to change to Success
  5. If the update returns an error, please try again. If it continues to fail the update, please contact Pckgr support.

Leave a comment