There was a recent discussion about the Package resource and arguments, but I’ve run into a new (and baffling) problem. I’m using the Package resource to install 7-Zip on a server. Here is the relevant part of my configuration:
So here’s the wild part - this doesn’t technically fail. 7-Zip installs successfully, and DSC is completely happy. The problem is, it gets installed to the default folder of C:\Program Files\7-Zip rather than C:\Tools\7Zip where I told it to. It’s as if the argument I included is completely ignored. Here’s the portion of the output when it runs
VERBOSE: [SERVER01]: [[Package]SevenZip] Starting process C:\WINDOWS\system32\msiexec.exe with arguments /i “C:\Installs\7Zip\7zip-x64.msi” /quiet INSTALLDIR=C:\Tools\7Zip
VERBOSE: [SERVER01]: [[Package]SevenZip] The machine requires a reboot
VERBOSE: [SERVER01]: [[Package]SevenZip] Package has been installed
VERBOSE: [SERVER01]: [[Package]SevenZip] Package configuration finished
VERBOSE: [SERVER01]: [[Package]SevenZip] in 0.9850 seconds
If I copy and paste the command it supposedly ran in line 1 into a PowerShell window, it works as expected with 7-Zip installing to C:\Tools\7Zip, so I know the argument itself is correct.
Has anyone run into something similar? Do I need to format my argument differently? I tried including escaped double-quotes around the install path itself, but it had the same result.