Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 1.67 KB

README.md

File metadata and controls

70 lines (48 loc) · 1.67 KB

WinGet

This Module contains a Resource and Provider to install Software via Winget.

Usage

Simply use the Resource like this:

   wingetpkg {'Microsoft.PowerToys':
      ensure => present,
      version => 'latest',
   }

The title of the Resource is the id of the Winget package

Setup

Of course you will need Windows for that, and an installed and working Winget-Command. Maybe you can install it on older Versions, but Winget is includes in Windows since Windows 10 1709 (Build 16299). You can download and install it manually via [Github Releases]https://github.com/microsoft/winget-cli/releases).

Reference

Params:

The following Params exists:

ensure => :present, :installed, :absent version => or 'latest'

Optional:

fastupgrade => (default: 'yes') Use this Param with 'no' to turn of the Upgrade-Command of WinGet. This makes sence e.g. for the "Visual C Redistibutables", which creates dublicates on update, and confuses Winget. If this happens, please uninstall the doubled version manually, andd try it again. Also some Packages reports an incompatible installer for upgrade. With this Option you have a workaround.

   wingetpkg {'Microsoft.VCRedist.2013.x64':
      ensure => present,
      version => 'latest',
      fastupgrade: 'no'
   }

Limitations

Please keep in mind that winget is not really stable, but usable. I have seen a lot of problems related to winget when i have developed this Module.

misc

You have a little more insight how it works, if you use:

puppet resource wingetpkg

to view the currently detected packages, and of course:

puppet apply <manifest> --debug

to view some debug messages