Trigger logging from within Wix script
Normally, to enable logging, you'd say msiexec ... /l*v [or any other combination]
.
Note that these are all outside actions, in a sense that the wxs
script is not 开发者_JS百科the one specifying the logging options.
Is there a way to control logging from within the wxs
script? Preferably to a folder like INSTALLDIR\Logs
?
Is this a good practice? I know uninstalling will leave the Log
folder behind, unless I clean it up somehow.
You can request a log verbosity level with the MsiLogging property. However, you can't control where the log is created and both level and location are overridden by anything the user specifies.
精彩评论