Thursday 21 July 2011

Create Patches Using Wise Package Studio.

Step by Step Procedure
  • Build a new MSI for the project that will upgrade minor changes.Previous and newly created MSI should be kept as similar as possible.
  • Open Wise Package Studio, Select 'Patch Creation' and double-click the Patch Creation in 'Tool tab'.
The Welcome dialog appears, listing the basic steps for creating a patch file. The wizard guides you through each step.
  • Click on 'Next'
  • Click on 'Next'

  • Click on 'Add' then the following screen appears:
  • Brows the previous MSI in previous MSI path And click 'OK'
  • The following screen appears with the older version of MSI. Click on 'Next'.
Note that the .MSI files must have all files placed outside of the installation because the patching engine compares the contents of files, it needs to be able to see those files.
If your MSI is in compressed format then the Wizard will ask you where you want to decompress the files to. Choose a temporary folder as this can be safely deleted once the patch has been made.
  • Specify the updated MSI path with the help of 'Browse' button. Then click on 'Next' button.
  • Select the destination path for the patch package using Browse button, then click on 'Next'
To make this patch removable through Add/Remove Programs, click Allow Removal and complete the Patch Removal Settings dialog in the above screen.
  • Click 'Finish' and the .msp and .psp files are ready in the specified folder.
The patch file will be saved in the specified location. If the patch file could not be created, use this log file to determine the source of the error.
To apply the patch use the following command line with appropriate switches as necessary.
msiexec /i mypackage.msi PATCH=mypatch.msp
 

No comments:

Post a Comment