Always always use quotes too, and only use %~dp0 when running from a batch file. I would also recommend a few other changes.
msiexec.exe /i appname.msi PATCH=”%~dp0patch.msp” /qn /l*v %temp%/logname.log Daniel Ratliff From: [email protected] [mailto:[email protected]] On Behalf Of Chris Carbone Sent: Wednesday, November 04, 2015 3:20 PM To: '[email protected]' Subject: RE: [mssms] Installing MSI and MSP a same time I would think your second attempt should work but noticed you have one part of the command backwards. msiexec.exe /i appname.msi PATCH=%~dp0patch.msp /q From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of ccollins9 Sent: Wednesday, November 04, 2015 2:04 PM To: mssms Subject: [mssms] Installing MSI and MSP a same time Anyone have experience doing this with SCCM 2012? I'm not trying to use a patch file on this, but will if I need to. Example command line: msiexec.exe /i appname.msi PATCH=patch.msp /q. Apparently the PATCH= needs a full path. How can I identify the temp path that the file will run from c:\windows\ccmcache\x? I've tried: msiexec.exe /i appname.msi PATCH=.\patch.msp /q and msiexec.exe /i appname.msi PATCH=~%dp0patch.msp /q None seem to be working. Any help would be appreciated. Thanks! This electronic mail transmission may contain confidential information intended only for the use of the individual(s) identified as addressee(s). If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this electronic mail transmission is strictly prohibited. If you have received this transmission in error, please notify me by telephone immediately. The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information.
