[wix-users] Write custom message in WIX log file
Elena Aralla
elena.aralla at gmail.com
Thu Jul 26 08:14:33 PDT 2018
Hello,
I was rather looking for something simpler, like a tag to use in the Product.wxs file, for example:
<Log message = "this is my custom log message" />
or
<LOG>this is my custom log message</LOG>
that will write my message in the MSI log …
have a nice day,
Elena.
> Il giorno 20 lug 2018, alle ore 19:48, Rob Mensching via wix-users <wix-users at lists.wixtoolset.org> ha scritto:
>
> You want: https://docs.microsoft.com/en-us/windows/desktop/api/msiquery/nf-msiquery-msiprocessmessage
>
> There are wrappers available in wcautil and DTF
>
> _____________________________________________________________
> Short replies here. Complete answers over there: http://www.firegiant.com/
>
>
> -----Original Message-----
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Stein Inge Åsmul via wix-users
> Sent: Friday, July 20, 2018 9:04 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Cc: Stein Inge Åsmul <glytzhkof at gmail.com>
> Subject: Re: [wix-users] Write custom message in WIX log file
>
> From a custom action? Though not from WiX, I hope it is OK to link to good
> content: Writing to the Log File from a Custom Action <https://resources.flexera.com/web/pdf/archive/msi_writing_to_the_log_file.pdf>.
> This
> is from Flexera (makers of Installshield), but it covers logging from different types of custom actions in general as well as their proprietary ways.
>
> There may be better ways to do this from managed code that I haven't used (I stay away from managed code CAs).
>
> Come to think of it, aren't there built-in constructs in the WiX custom action templates for this (logging)? I am on Linux right now and can't test. I will have a look later. Or just install the visual studio
> integration(s) and create a new test project yourself?
>
> http://wixtoolset.org/releases/ (get the appropriate WiX Toolset Visual Studio Extension according to your Visual Studio version - see a bit down the page).
>
> 2018-07-20 17:42 GMT+02:00 Elena Aralla via wix-users <
> wix-users at lists.wixtoolset.org>:
>
>>
>> Hi,
>>
>> is there any way to write custom messages in the default WIX log?
>>
>> The best thing would be to write a custom log file, but it seems to me
>> that it's not possible, right?
>>
>> Thank you, Elena.
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list