This is usually done via admin images (/a switch in MSI) and there are built in 
mechanisms to remember the state in Admin Properties.  MSI SDK and GPO 
documentation should have many more details.

-----Original Message-----
From: Andrew Kendall [mailto:akwix2...@yahoo.co.uk] 
Sent: Tuesday, December 23, 2008 04:17
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to save entire open installer database to a copy msi 
file from custom action?

What I would like to do is save the state of the open msi database, in its 
entirety, at the end of the install process, so it reflects the custom settings 
selected by the user. The reason I want to do this is so a Network 
Administrator can perform a local install first and his custom settings be 
recorded in a copy msi file, which would then deployed on a domain server 
(using a Group Policy Object) for network users to install from, allowing the 
Network Administrator to set network-wide install options.

Dumping the database would thus have to be done from a Custom Action. Can 
anybody tell me if such a thing is possible, and the best way of achieving it. 
It looks as though any Msi api functions that might be useful for this task 
cannot be called from Custom Actions, eg. MsiDatabaseExport.

It surely must be possible, from a DLL Custom Action, to programmatically 
create a new empty MSI and copy to it all the tables and their content from the 
current open database.

All advice will be gratefully received. Many thanks.

Andrew Kendall


      
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to