共用方式為


從自定義動作內部存取資料庫或會話

您無法從不是目前安裝工作階段的自訂動作存取安裝程式工作階段。 自定義動作僅限於只使用會話的作用中資料庫,而沒有其他資料庫。 下列 Windows Installer Database Functions 不得從自訂動作中呼叫,因為它們需要的控制碼不是目前安裝會話資料庫的:

MsiDatabaseMerge

 

MsiCreateTransformSummaryInfo

 

MsiDatabaseApplyTransform

 

MsiDatabaseCommit

 

MsiDatabaseExport

 

MsiDatabaseGenerateTransform

 

MsiDatabaseImport

 

MsiEnableUIPreview

 

MsiGetDatabaseState

從自定義動作內部存取目前的安裝程式工作階段