/// <summary> /// Exports an installer table from an open database to a text archive file (idt file). /// </summary> /// <param name="tableName">Specifies the name of the table to export.</param> /// <param name="folderPath">Specifies the name of the folder that contains archive files. If null or empty string, uses current directory.</param> /// <param name="fileName">Specifies the name of the exported table archive file.</param> public void Export(string tableName, string folderPath, string fileName) { if (String.IsNullOrEmpty(folderPath)) { folderPath = Environment.CurrentDirectory; } var error = MsiInterop.MsiDatabaseExport(this.Handle, tableName, folderPath, fileName); if (0 != error) { throw new MsiException(error); } }