Can anyone tell me how to make a universal transform or a template transform that will work on all msi's?


The trick is to get the validation conditions on the transform to be lenient.

The following validation conditions are available for a transform (these are stored in the transform's summary information stream):


Any one of the following version specifications (which would also have a validation equality flag as well)

You would basically want to not validate any of the transform validation conditions that ensure product code, upgrade code, product version, and product language matching.

Depending on the types of changes you are making, you may want to suppress all of the error conditions as well to ensure that the transform can be applied without failure.

More specifics on the transform summary information stream can be found in the MsiCreateTransformSummaryInfo API documentation.

You can easily accomplish this using the msitran.exe tool provided in the Windows Installer SDK development tools section.

A no validation suppress all error transform would be generated using something similar to:

msitran -g simple.msi simple2.msi simple.mst abcdef

Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team

Content credit belongs to

[Author: Robert Flaming]
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at