Skip to content

Commit f02fe37

Browse files
author
tester bester
committed
InstallDir property added
1 parent a64cf14 commit f02fe37

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

scripts/Apply_DSC_Desktop_Config.ps1

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)