02/16/2009 48181 views

I'm attempting to install software (.msi) and patch file (.msp) with same command-line as follows:

msiexec /i package.msi /update update.msi /quiet /norestart /l*v c:\temp\log.log

Even I'm located in same directory with these files, I get error that one of these packages can't be found. If I put full path ahead of .msi and .msp files, then it works. This causes problems, because I'm going to deploy this with SMS and Package folder name on \system32\ccm\cache might change if settings are updated for program.

I know that I could create two separate programs for msi and msp but I want to make installation happen with one command line.

How should I modify my command-line to make it work? I can't see why it won't work if both files are located in same directory where command is executed.
0 Comments   [ + ] Show comments


Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

Answered 02/17/2009 by: AngelD
Red Belt

MSIEXEC /i <MSI-Name>.msi PATCH=<MSP-Name>.msp doesn't work with SCCM. It gives error 1635 which is patch package could not be opened.
Executing the command manully with the path works fine.
Ran out of options.. is it possible at all ?

Answered 02/24/2010 by: Nirmal1208
Senior Yellow Belt

Alternatively you can do an admin install and apply the patch over it and then install the updated msi

Answered 02/24/2010 by: slay_u
Orange Belt

Thanks.. i ended up doing this but wondering why
MSIEXEC /i <MSI-Name>.msi PATCH=<MSP-Name>.msp wouldn't work in SCCM.
any one faced this problem or just me ?
Answered 02/26/2010 by: Nirmal1208
Senior Yellow Belt

Using the update switch or Patch property you should eventually find won't work at all with SCCM. That's what I found with SCCM 2007.

Firstly your command line syntax is not complete. You must include the full path to the MSP with either the switch or the property and you will find reference to this in the Windows Installer SDK.

When you do get the syntax right you should still be returned a error code '1651 - Windows Installer does not permit the patching of managed advertised products. At least one feature of the product must be installed before applying the patch.'

Withstanding this is the use of Administrative installations, as suggested previously above. Otherwise, dare I suggest patches are not the way forward and updates should be minor or major upgrades, incrementing the versions numbers and reinstalling the products in the process?
Answered 10/27/2011 by: tso149
Yellow Belt

This content is currently hidden from public view.
Reason: Member has been banned from the site For more information, visit our FAQ's.

The patch need a full path, since this can change in your case, use a command-file;

set THISDIR=%~dp0
msiexec.exe /i "MyMSI.msi" PATCH="%THISDIR%MyPatch.msp" /qb!

Use the command-file as the program to run in Sccm2007.



Answered 12/11/2012 by: gerardonstenk
Senior Yellow Belt