Installing MSI and MSP same time
Hello,
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.
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
Answers (6)
Please log in to answer
Posted by:
slay_u
14 years ago
Posted by:
gerardonstenk
12 years ago
Posted by:
AngelD
15 years ago
Check out the PATCH property
http://msdn.microsoft.com/en-us/library/aa370576(VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa370576(VS.85).aspx
Posted by:
Nirmal1208
14 years ago
Posted by:
Nirmal1208
14 years ago
Posted by:
tso149
13 years ago
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?
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?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.