Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Error Trapping/Hooking


1 reply to this topic

DougHolmes11

DougHolmes11
  • Members
  • 0 posts

Posted 23 May 2005 - 22:19

I apologize a head of time if this is a newbie question but I was wondering if there was anyway to hook or trap an MSI error. I don't want to stop it, I would just like to perform some custom logging before the installation terminates.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 24 May 2005 - 13:42

If the error is thrown by your own custom action, then you can log information from inside your DLL (or whatever your custom action type is)
Otherwise errors are automatically logged to the installer log (if logging is turned on) and the windows event log.