/build/static/layout/Breadcrumb_cap_w.png

How to capture any failures during installation

Is there a way in Windows installer using which I can log the action that failed the installation. I want to send this data to my server via a POST call. For example if a custom action failed I want to log the name of the custom action and the return value.

Please note that I am not talking about MSI logs here. Is there a way using which I can send concise information about what action made the installation to terminate?


0 Comments   [ + ] Show comments

Answers (1)

Posted by: jaybee96 11 years ago
Red Belt
0

Why would you like to do this, the windows installer log AND eventvwr are both recording any issues during the sequences.  If you want to be sure that custom actions are transmitting data to a server, you will need to script this in the CA.

It is also possible to create "RollBack actions" that will do the communication WHY a failure has occured.   

Info about Rollback Actions:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa371369(v=vs.85).aspx 


Comments:
  • I have lot of small third party merged modules in my installer. I want to measure success failure rates of installations. Mostly i see that these merged modules are causes of failure.
    I am willing to write a CA that will communicate with my server but I don't know how to capture the information about the installer action that failed. A rollback CA only tells me that installation failed but it does not tell me the action that triggered the rollback.
    Please let me know if there is a way to know the action that failed along with the return value. - deployX 11 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ