According to the MSDN
documentation "http://msdn.microsoft.com/library/default.as
p?url=/library/en-us/msi/cact_99gu.asp" this is not a
possibility. Does anyone know of a work-around?
Better yet, my ultimate goal is to edit the database and
add registry keys into the registry table after the
InstallFiles action has run and before WriteRegistryKeys
action runs. I believe I need a deferred custom action to
run as these two actions are also deferred.
Any idea as to how I can use the database functions in a
deferred custom action?
Thanks - Ben
"ben sherwood" <ben_sh...@nai.com> spake the secret code
<bef901c20d8e$2781a480$19ef2ecf@tkmsftngxa01> thusly:
>I am attempting to use the database functions -
>msigetactivedatabase, msidatabaseopenview, msirecordset*,
>msirecordget*, etc. The editing of the MSI database works
>great when running from an immediate custom action, but I
>would like to run from a deferred custom action.
Why? Editing the database from a deferred custom action would have no
effect.
>Better yet, my ultimate goal is to edit the database and
>add registry keys into the registry table after the
>InstallFiles action has run and before WriteRegistryKeys
>action runs. I believe I need a deferred custom action to
>run as these two actions are also deferred.
That is not your ultimate goal, that is the task you think achieves
your ultimate goal. Why do you need to edit the registry table after
installfiles has run?
--
Ask me about my upcoming book on Direct3D from Addison-Wesley!
Direct3D Book http://www.xmission.com/~legalize/book/
izfree: Open source tools for Windows Installer
http://izfree.sourceforge.net
I need to edit the registry table after installafiles has
run because there are registry keys that need updating in
the registry table which need to be written before
WriteRegistryKeys action runs. The registry keys that I am
updating, they are modified by API's that I am calling
which are located in files that the product is installing
during InstallFiles.
So you see, I need to install the files, call the api's,
import the reg keys into the registry table, then run
WriteRegistryValues. All deferred CA's.
Ideas?
"ben sherwood" <ben_sh...@nai.com> spake the secret code
<ac1201c20d94$cb4a24b0$a5e62ecf@tkmsftngxa07> thusly:
>I need to edit the registry table after installafiles has
>run because there are registry keys that need updating in
>the registry table which need to be written before
>WriteRegistryKeys action runs.
Need to be written with what?
Deferred CA's can't modify the database, your approach is not going to
work. I'm still unclear exactly why you need to do this at the time
after InstallFiles has run.