Deployment Tools Foundation
GenerateTransform Method (referenceDatabase, transformFile)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► GenerateTransform(Database, String)
Creates a transform that, when applied to the object database, results in the reference database.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
![](collapse_all.gif)
true if a transform is generated, or false if a transform is not generated
because there are no differences between the two databases.
![](collapse_all.gif)
A transform can add non-primary key columns to the end of a table. A transform cannot be created that adds primary key columns to a table. A transform cannot be created that changes the order, names, or definitions of columns.
If the transform is to be applied during an installation you must use the CreateTransformSummaryInfo(Database, String, TransformErrors, TransformValidations) method to populate the summary information stream.
Win32 MSI API: MsiDatabaseGenerateTransform
![](collapse_all.gif)
Exception | Condition |
---|---|
InstallerException | the transform could not be generated |
InvalidHandleException | a Database handle is invalid |