File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ Configuration DesktopPackages {
77 Node ' localhost' {
88 # A resource to ensure Chocolatey is installed
99 cChocoInstaller InstallChocolatey {
10- Ensure = ' Present'
10+ # Fix: Add the mandatory InstallDir property
11+ InstallDir = ' C:\ProgramData\chocolatey'
12+ Ensure = ' Present'
1113 }
1214
1315 # A resource to install multiple packages using cChoco
@@ -23,14 +25,5 @@ Configuration DesktopPackages {
2325 Name = @ (' googlechrome' , ' firefox' )
2426 Ensure = ' Present'
2527 }
26-
27- # Example of installing an MSI package directly
28- # You would need to provide the path to the MSI and the ProductId
29- # Package LibreOffice {
30- # Name = 'libreoffice'
31- # Path = 'C:\path\to\libreoffice.msi'
32- # ProductId = 'PRODUCT-ID-GUID'
33- # Ensure = 'Present'
34- # }
3528 }
3629}
You can’t perform that action at this time.
0 commit comments