Have i missed something? Execute-MSI -Path

Topics: Archive - General
Dec 15, 2014 at 12:41 PM
i thought I would update one of my scripts to 3.5.0 and I had the install in the system of
Execute-MSI -Action Install -Path $dirFiles\Flash15\install_flash_player_15_active_x.msi -Transform ActiveX.mst -Parameters "/QN" 
this used to work but now I get the error

"[$Path] contains an invalid path or file name."
Developer
Dec 15, 2014 at 1:30 PM
Edited Dec 15, 2014 at 1:30 PM
That command probably did not ever work as written above. You need double quotes around the path like so:
Execute-MSI -Action Install -Path "$dirFiles\Flash15\install_flash_player_15_active_x.msi" -Transform ActiveX.mst -Parameters "/QN" 
Dec 15, 2014 at 2:52 PM
That is how it was coded in my original 3.1.5 version of the script.

adding the quotes does not help. I get the same error message

Message : [msiexec.exe] contains an invalid path or file name.
InnerException :
FullyQualifiedErrorId : [msiexec.exe] contains an invalid path or file name.
PositionMessage : At F:\Software_Core Softare Security Updates\Core_Updates_(Adobe_and_Oracle)\V3.5.0\AppDeployToolkit\AppDeployToolkitMain.ps1
:2204 char:11 + Throw <<<< "[$Path] contains an invalid path or file name."



cheers
Developer
Dec 15, 2014 at 2:55 PM
The full error message helps. You're running into a bug with 3.5.0 that is resolved in the latest beta under the "Source Code" tab of this site. Lines 2174 to 2180 have the fix for this issue.
Dec 15, 2014 at 4:23 PM
ok ill not bother with 3.5.0 then and wait for the next stable version.

cheers