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   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


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]
Answered 01/31/2008 by: VBScab
Red Belt

Please log in to comment

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.
Answered 02/13/2008 by: applereaper
Senior Yellow Belt

Please log in to comment