We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Ascii2
Posts: 2
Joined: Thu Jul 16, 2015 1:18 am

Investigating PATCH Property and Related

I am rather new to authoring Windows Installer files and the more advanced working of Windows Installer.

I have been trying to determine how to properly install software in an MSI package while including a patch package at the same time.

I learned of the PATCH public property (MSDN Description Page) and tried to use it on the command line to install various MSI package plus a patch together in one go on Windows XP Professional with Service Pack 3.

The results were sometimes (but not always) inconsistent with the results from running the installing the MSI package then the patch separately. The results were consistently inconsistent for specific MSI package and patch file combinations.

For example, when attempting to install Microsoft Office 2000 Premium SR-1 with Service Pack 3 from a Microsoft Office 2000 Premium SR-1 original source and the full-file Service Pack 3 ("SP3") CD1 patch file together at the same time, the installation runs, but does not pre-select available options to install. After selection the options manually, and continuing installation, the installation completes, but none of the selectable options have actually been installed. What is interesting is that Office 2000 Premium SR-1 with Service Pack 3 may fully be installed after using the "Add or Remove Features" feature of Office Maintenance Mode.
The command I used from a Windows NT Command Script File (CMD file) was:

Code: Select all

MSIEXEC /i "DATA1.MSI" PATCH="%~dp0MAINSP3ff.msp" ALLUSERS="1"
The installation files I used were:

Code: Select all

Office 2000 Premium SR-1 original installation source (An MSI package control file plus the actual Microsoft Office files to be installed).  I have attached a ZIP 2.0 archive with the MSI package control file for reference.

Office 2000 Premium SR-1 CD1 full-file Service Pack 3 "MAINSP3ff.msp" member file from:
http://download.microsoft.com/download/office2000/SP/3/WIN98MeXP/EN-US/o2ksp3a.exe
Another example: When installing the 32-bit version of Microsoft Virtual PC 2007 SP1 plus an update patch at the same time, the installation visibly seems correct with exception that the installed software's Windows registry information that should be initialized is not initialized. The command I used from a Windows NT Command Script File (CMD file) was:

Code: Select all

MSIEXEC /i "Virtual_PC_2007_Install.msi" PATCH="%~dp0KB958162.msp" ALLUSERS="1"
The installation files I used were:

Code: Select all

Microsoft Virtual PC 2007 SP1 32-bit:
http://download.microsoft.com/download/3/0/e/30e87f07-d6b3-4ab3-a93d-a17814ed8b4b/32%20BIT/setup.exe

The (x86 KB958162) update patch:
http://download.microsoft.com/download/D/5/2/D520FE07-74BC-48CE-84F7-FFADB2877F1D/32%20Bit/KB958162.msp
After much research, I could not find better information to explain my observations.

Could it be that I need to also specify something else on the command line? If so, what? If the "what" may vary, how can I determine what the "what" is?

Any answers, tips or other related information is appreciated.
.
Attachments
DATA1_MSI.zip
ZIP 2.0 archive containing Microsoft Office 2000 SR-1 MSI package control file
(634.72 KiB) Downloaded 215 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Investigating PATCH Property and Related

Hello and welcome to our forums,

Since we are not the publishers of the related setup files, I'm afraid we cannot say for sure why this behavior appears. However, what you can try is to also set the "ADDLOCAL" property to "ALL" so that all of your product installation features be installed. So, you can try a command line like this:

Code: Select all

MSIEXEC /i "DATA1.MSI" PATCH="%~dp0MAINSP3ff.msp" ALLUSERS="1" ADDLOCAL=ALL
and see if this works, otherwise you should try contacting the publisher of the setup packages (i.e. Microsoft) and see if they still offer support for them.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ascii2
Posts: 2
Joined: Thu Jul 16, 2015 1:18 am

Re: Investigating PATCH Property and Related

Thank you for your response Daniel. I have tried the "ADDLOCAL=ALL" argument before, but it did not yield any different behavior.

I had though perhaps it was something that I was not understanding about Windows Installer given than many packages fail to install correctly when the PATCH property is used. So it seems that the problems may be that the setup files are not properly authored such that PATCH yields the correct result or that the Windows Installer does not truly handle patches at the same time as the installation with the main MSI setup file.

Return to “Building Installers”