Install programs and multiple patches with one command line
I’d like to run the install of Reader 10.1.6 with a single command line. This would require specifying the MSI, the MST, the 10.1.5 accumulated patch and the 10.1.6 security patch, and of course a log file. I’ve tried the following command without success:
msiexec /i "AcroRead.msi" TRANSFORMS="AcroRead.mst" /patch "%~dp0AdbeRdrUpd1015.msp;%~dp0AdbeRdrSecUpd1016.msp" /l* "C:\windows\logs\AcroReader 10.1.6 install.log" /qb-
When I execute the command line, I get the MSIEXEC help screen, indicating the syntax is wrong.
If I remove the 10.1.6 patch from the syntax, the command works fine.
I’ve also tried changing “/patch” to “PATCH=” and still suffered the same failure.
I know in the past I would have to specify the exact path of the patch files, even though they sit in the same folder that the MSI & MST sit.
I know I've done this in the past but I think it was about two years ago I'm not sure how I did it (darn my poor documentation skills!) or if the current version of MSIEXEC no longer supports what I want to accomplish.
The "/patch" switch no longer functions, at least on a Win7 system with MSIEXEC 5.0. We need to use "PATCH=" or "/update".
Community Chosen Answer
In reading the documentation, it looks like you have good syntax other than some items being in a different order which usually does not matter. Can you try the below line and see if that produces the same results?
msiexec /i "AcroRead.msi" PATCH="%~dp0AdbeRdrUpd1015.msp;%~dp0AdbeRdrSecUpd1016.msp" TRANSFORMS="AcroRead.mst" /qb- /L* "C:\windows\logs\AcroReader 10.1.6 install.log"