If the database is not available in a deferred CA and I have to put it after InstallFinalize is it feasible to Rollback at this point if things go pear shaped?
Can I use MsiViewFetch in a CA deferred Action?
Posted 12 February 2001 - 16:48
Posted 13 February 2001 - 08:10
If setup is aborted after InstallFinalize, no rollback occurs.
Posted 13 February 2001 - 09:36
Can you just confirm that I should be able to query tables in a deferred action without any problems. Obviously I have to get the properties for the deferred CA.
Having thought about it - the backup files etc are removed at InstallFinalize so obviously I cannot rollback after this point
Posted 13 February 2001 - 16:35
This works fine apart from I do not know how to close the database after use. MsiCloseHandle is not recognised???
Any help would be much appreciated.
Posted 13 February 2001 - 16:53
Quote |
MsiCloseHandle is not recognised |
What do you mean with this? Do you get compile time errors or run time errors? What type of custom action is this - a DLL?
Posted 13 February 2001 - 17:18
I didnt realise that it was a windows API call that I had to declare manually in my Installscript.
"prototype MSI.MsiCloseHandle(HWND);"
Is it OK to open and close the DB in this way in a deferred CA or am I going to violate any rules.
I am querying the database to find which components are enabled and getting the associated filenames.