Using ORCA and MSIDIFF to Automate MSI Updates |
This section describes how you can make use of "MsiDiff.VBS" and "ORCA" (or any other msi editor) to easily automate any changes to an MSI (or any other Windows Installer database type) that you already know how to make.
The steps are:
#include "OpenMsi.MMH" <$Msi 'out\Tweek.mm\Msi\After.msi' Template='out\Tweek.mm\Msi\Before.msi'> <$Table "Property"> #( <$Row Property="SOME_NEW_PROPERTY" Value="SomePropertyValue" > #) <$/Table> <$Summary "LastAuthor" Value="Dennis"> ;;Previous value = My Name <$Summary "LastSave_DTM" Value='cdate("17/10/2006 5:41:14 PM")'> <$/Msi>
<$Msi '.\BEFORE.msi'>
An example of what the end result might look like:
#include "OpenMsi.MMH" ;;Better to use "MyMsiUpdate.MMH" and remove the common "stamping" below... <$Msi '.\Before.msi'> ;;Change original (instead of creating a copy with changes applied) ;--- Make the changes --------------------------------------------------- <$Property "SOME_NEW_PROPERTY" Value="SomePropertyValue"> ;--- "Stamp" MSI -------------------------------------------------------- <$Summary "LastAuthor" Value="Dennis Bareis"> <$Summary "LastSave_DTM" Value='now()'> <$/Msi>