Reputation: 76258
Normally, to enable logging, you'd say msiexec ... /l*v [or any other combination]
.
You can also enable logging all products via the registry tweak.
Note that these are all outside actions, in a sense that the wxs
script is not 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.
Upvotes: 3
Views: 315
Reputation: 21896
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.
Upvotes: 3