I have tried several was to use DSC to install AppFabric. A couple of them work.
xPackage installs the app but then it cant test for it, as there is no GUID to identify it.
My next try was WindowsProcess
WindowsProcess AF #ResourceName
Arguments = “/i CachingService,CacheClient,CacheAdmin /SkipUpdates /logfile F:\Logs\AppFabric\AppFabricInstallLog.txt”
Path = “D:\Install\AppFabric\WindowsServerAppFabricSetup_x64_6.1.exe”
#Credential = $cred
Ensure = “Present”
[ DependsOn = [string] ]
[ StandardErrorPath = [string] ]
[ StandardInputPath = [string] ]
[ StandardOutputPath = [string] ]
WorkingDirectory = "D:\Install\AppFabric"
This works as well, But it does not wait for the process to complete before it moves on so I get an error.
In my old Powershell script I did this:
Is there a way to do this in DSC?