-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to enable session.Log("") output always ( without starting the installer with /lv argument) ? #1656
Comments
Unfortunately, MSI does not provide any interface for that. When WixSharp ManagedUI is used it intercepts all messages from the progress dialog and always redirects all log messages to the log file. This is exactly the behaviour you want. But it's only available if you use ManagedUI. There is no other way. |
I use the ManagedUI but session.Log messages are only written to the log file if i start the installer with |
I tried that but the messages that i write via session.Log are not displayed in this log file. I think it is not written without |
OK, you are right. I checked the code and indeed the native MSI log is unavailable. Even from ManagedUI. It is a limitation of MSI API. Apologies for misleading you. What I do in ManagedUI is intercept the progress messages and runtime exceptions and log them in the memory. But what it means is that |
Thanks. Is there an example available? Or do you just use a property/static variable to store the log? |
When using
session.Log("Some logging message") it is only written to the log file when the installer is started with /LV arguments.
Is it possible to enable writing to the logfile always?
The text was updated successfully, but these errors were encountered: