PDA

View Full Version : How to get list of registry entries that will be written?



Ih8stupidrules
06-16-2014, 10:30 AM
Is there a way, in the execution phase of a msi, to get the list of registry entries that will actually be written, in a DTF custom action?

I know I can get this info from the log after the installation has completed, but I need it at runtime to use in a custom action.

What table/view can I query to get this information at run time? The Windows Installer engine must have a table/view with this information, no?

TsungH
06-16-2014, 04:16 PM
You can take a look at Registry Table (http://msdn.microsoft.com/en-us/library/aa371168(v=vs.85).aspx).

Ih8stupidrules
06-18-2014, 09:34 AM
I did, but that's the entire list of registry entries that can be written, which can be different than the actual list of registry entries that will be written, especially in a minor upgrade.

It's what I'm using now, but I would prefer to not have to process the entire table, only the entries scheduled to be actually written/installed.

Anyone has an idea how to get, at runtime, the actual list/view/table of registry entries the Windows installer engine is going to write during the WriteRegistryValues action?

TsungH
06-18-2014, 01:42 PM
I am not aware of a transient table or view that contains a list of registry entries actually written during installation. However, you could jump through some hoops to arrive at the same list by cross-referencing components' action and Registry table.