/build/static/layout/Breadcrumb_cap_w.png

setting msi event viewer entries


hi folks,
i am wondering is it possible to set information messages in event viewer to errors within the MSI?
For example i have an MSI which fails to install and it puts an information message in the event viewer Installation
Product: MyTest App 1.0.0 -- Installation operation failed.

is it posible to do this without the use of custom actions?

any info appreciated.
.


0 Comments   [ + ] Show comments

Answers (2)

Posted by: anonymous_9363 12 years ago
Red Belt
0
AFAIK, it isn't possible for the built-in Custom Actions to create events in the Event Viewer log. Self-authored CAs can, though, using the WScript.Shell's LogEvent method.

If you want a clearer idea of what happened during an installation, run it with a verbose log:

MSIExec /i [path_to_and_name_of_MSI] /L*V [path_to_and_name_of_log_file] [other_command_line_arguments]
Posted by: applereaper 12 years ago
Senior Yellow Belt
0
Hia

There is a way to get it to show in the event viewer but it is messy. You create a custom action inside the installer which will call a script to write to the event viewer. You just have to make sure that your script can't fail else it can stop the install.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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