开发者

WIX write custom log file

I have a wix project, and i need write custom log file, except m开发者_如何学Gosi log.

My idea is as follows: Write all needed info in one property, and when install complete - write value of property to file in custom action.

I have no idea, how i may increment property value without replacing.

Also, if you have better way to write custom log - i am pleased to read


Is there a reason that you don't want to use the log file that MSI's can inherently log to?

If so, you could just write a custom action and call into the log method...

session.Log("This is my custom message."); 

You could persist your property value in the registry or by using a session property that you expose an Increment() call to, through yet a different custom action.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜