2
2
3
3
This cookbook installs [ WinGet] ( https://github.com/microsoft/winget-cli ) on a
4
4
Windows system and provides a custom resource for installing other packages
5
- using WinGet .
5
+ using it .
6
6
7
7
## Requirements
8
8
@@ -15,7 +15,7 @@ include_recipe 'winget'
15
15
16
16
winget_package ' Install GIMP' do
17
17
id ' gimp.gimp'
18
- name ' GNU Image Manipulation Program '
18
+ full_name ' GIMP 2.10.18 '
19
19
action :install
20
20
end
21
21
```
28
28
29
29
- ` id ` : ID of the application to install. This must be an exact match.
30
30
Defaults to the resource name.
31
- - ` name ` : the name the application uses in the Windows Programs applet. Used
32
- to check if the application is already installed. Defaults to the ` id ` .
31
+ - ` full_name ` : the name the application uses in the Windows Programs applet.
32
+ Used to check if the application is already installed. Defaults to the
33
+ ` id ` .
33
34
- ` version ` : the specific version to install. Defaults to the latest version.
34
35
- ` manifest ` : if installing from a file rather than the Microsoft package
35
- repository, the path to the manifest of the application. Defaults to empty.
36
- - ` override ` : arguments to be passed on to the installer. Defaults to empty.
37
- - ` location ` : location to install to (if supported).
36
+ repository, the path to the manifest of the application. Defaults to unset.
37
+ - ` override ` : arguments to be passed on to the installer. Defaults to unset.
38
+ - ` location ` : location to install to (if supported). Defaults to unset.
39
+
40
+ ## Notes and caveats
41
+
42
+ - WinGet does not work correctly under WinRM and so Test Kitchen will fail
43
+ when trying to install a resource. As a workaround, you can log onto the
44
+ instance that was created and manually run ` chef-zero ` from the Test
45
+ Kitchen cache to complete the run. This is an upstream bug.
38
46
39
47
## TODO
40
48
41
- - Add full support for existing options
49
+ - Find and implement a workaround for the WinRM / UWP issue, or wait for this
50
+ to be fixed in the upstream WinGet package.
51
+ - Add full support for existing options.
42
52
- Add support for extra features (uninstall, update) as they are added to
43
- the upstream application
53
+ the upstream application.
0 commit comments