Hi, I'm trying to implement a Wix custom logging mechanism in our existing Wix Setup project. To do this.... I have written a Logger.exe using a C#. It takes command line string and logs in to file. I have created a custom action to invoke the Logger.exe with command line string, using WixCA and sequenced as shown below.
<?xml version="1.0" encoding="utf-8"?> <Include> <CustomAction Id="LoggMyMessage" Property="LogMessage" Value=""D:\MyProjects\Logger\Logger\bin\Debug\Logger.exe" "[CustomMessage]"" Execute="immediate" /> <CustomAction Id="LogMessage" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="yes" /> <InstallExecuteSequence> <Custom Action="LoggMyMessage" Before="InstallFiles"/> <Custom Action="LogMessage" After="InstallFiles">Not Installed</Custom> </InstallExecuteSequence> </Include> Now I want to re-use the same custom action during .... * Database installation * Service installation * whenever there is an error. Can anyone suggest how can I reuse my custom actions to get invoked and log the message into the log file. Thanks & Regards, Hareendra. ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users