Accessing a Database or Session from Inside a Custom Action

You cannot access an installer session from a custom action that is not the current installation session. Custom actions are limited to working with only the active database of the session and no other databases. The following Windows Installer Database Functions must not be called from a custom action, because they require a handle to a database that is not the database of the current installation session:

MsiDatabaseMerge

 
MsiCreateTransformSummaryInfo
 
MsiDatabaseApplyTransform
 
MsiDatabaseCommit
 
MsiDatabaseExport
 
MsiDatabaseGenerateTransform
 
MsiDatabaseImport
 
MsiEnableUIPreview
 
MsiGetDatabaseState

Related topics

Accessing the Current Installer Session from Inside a Custom Action

 

 

Show: