I am trying to use a Powershell DSC Package resource to install exe ... Perforce P4V to be specific. Here is my code:
Configuration PerforceMachine { Node "SERVERNAME" { Package P4V { Ensure = "Present" Name = "Perforce Visual Components" Path = "\\nas\share\p4vinst64.exe" ProductId = '' Arguments = "/S /V/qn"
When doing this, this Powershell error gives me:
PowerShell provider MSFT_PackageResource failed to execute Set-TargetResource functionality with error message: The return code 1619 was not expected. Configuration is likely not correct + CategoryInfo : InvalidOperation: (:) [], CimException + FullyQualifiedErrorId : ProviderOperationExecutionFailure + PSComputerName : SERVERNAME
According to the documentation , a return code of 1619 means that the MSI package cannot be opened. However, when I manually enter the computer and run " \\ nas \ share \ p4vinst64.exe / S / V / qn ", the installation works flawlessly.
Does anyone know why this fails? Alternatively, can someone tell me how to fix this problem? I inserted all the error information received from the terminal, my log file (p4v_install.log) is a 0 byte file, and there are no events in the event viewer. I donβt know how to fix them!
EDIT . I should note that I also tried using the File resource to copy the file locally and then install it there. Unfortunately, this met the same result.
source share