Oddly enough, I had to do this today. Below is my process:
Extracting files from MSPsWhen it comes to extracting files from MSPs, it works a bit differently than it would for MSIs. With an MSI file, all you need to do is use the 7zip file extractor, but MSP files depend on the base MSI installation packages.
Since MSP benefits from msiexec commands, we can use the administrative install parameter to say where to extract the content. However, we need to take into consideration the base MSI dependency. So, we need to perform three separate actions:
1. Extract the base MSI from Setup.exe. Create folder "C:\FolderInWhichMSIWillBeExtracted". Open an administrative command prompt, CD to where Setup.exe is, and run the command:
- Code: Select all
Setup.exe /extract "C:\FolderInWhichMSIWillBeExtracted\"
A bunch of files used to install Jiwa will now be in c:\FolderInWhichMSIWillBeExtracted including Setup.msi.
2. Extract the files from the base MSI.CD to "C:\FolderInWhichMSIWillBeExtracted\" and then run the command:
- Code: Select all
msiexec /a Setup.msi TARGETDIR="c:\FolderInWhichMSIWillBeExtracted\extracted" /qb
If prompted to reboot, choose no. The above command does not install Jiwa but will instead extract the contents of Setup.msi to a folder called c:\FolderInWhichMSIWillBeExtracted\extracted (the "extracted" sub-folder will be created if it doesn't already exist).
3. Patch the files extracted from the base MSI using the MSPTo do that, CD to where your msp file is, and then execute the following command line:
msiexec /p Jiwa7.2.1.0.SR15.msp /a "c:\FolderInWhichMSIWillBeExtracted\extracted\Setup.msi" /qb
If prompted to reboot, choose no. After you execute the last command, you can navigate to the c:\FolderInWhichMSIWillBeExtracted\extracted folder and get the patch files from there.
We currently use Advanced Installer to build our installation packages and I find their website full of good information. I pinched a few of the above steps from their blog post
here. I also find their
forums useful for installer-based questions.