I too am trying to install an .exe using the Package resource. In this case it is .NET 4.5.1. I boiled this down to single resource in a configuration and use “Push” mode. I also have the .exe located on the server to avoid any UNC security issues. The configuration is as follows:
Name = “Microsoft .NET Framework 4.5.1”
Path = “D:\Temp\NDP451-KB2858728-x86-x64-AllOS-ENU.exe”
ProductId = “7DEBE4EB-6B40-3766-BB35-5CBBC385DA37”
Arguments = “/q /norestart”
The error states:
VERBOSE: [SERVERNAME]: LCM: [ End Set ] [[Package]Microsoft_.NET_Framework_4.5.1] in 1.7790 seconds.
PowerShell provider Package failed to execute Set-TargetResource functionality with error message: The return code 16389 was not expected. Configuration is likely not correct
+ CategoryInfo : InvalidOperation: ( , CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
If I execute the Set-TargetResource function directly from the PowerShell command line, it works fine. I have been fighting this for about a day now and about to give up.