Installing an exe with Powershell DSC Package resource gets return code 1619

Question:

I’m trying to use Powershell DSC’s Package resource to install an exe… Perforce’s P4V to be specific. Here’s my code:

When running this, this is the error Powershell gives me:

According to documentation, return code 1619 means the MSI package couldn’t be opened. However, when I manually log in to the machine and run “\\nas\share\p4vinst64.exe /S /V/qn“, the install works flawlessly.

Does anyone know why this is failing? Alternately, can anyone tell me how to troubleshoot this? I pasted all the error information I got 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 troubleshoot it any further!

EDIT: I should note that I also tried using the File resource to copy the file locally, and then install it from there. Sadly, that met with the same result.

Answer:

Daniel over at the Powershell.org forums was able to figure this out for me.

The P4V InstallShield setup wrapper puts the MSI file into wrong path if you execute as LocalSystem.

I’ve managed to develop a Configuration that works, see below. The key is the /b switch here which puts the MSI file into a defined location. I’ve added ALLUSERS=1 to get the shortcuts visible to all users and REBOOT=ReallySuppress to avoid a sudden restart (which will happen otherwise).

Source:

Installing an exe with Powershell DSC Package resource gets return code 1619 by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply