Create ExePackage Log
- As a Setup developer I can redirect the console for
ExePackages such that I can troubleshoot when errors occur.
Add a new
BurnExeProtocolType and make it the default for ExePackage/@Protocol:
Redirect the standard output and standard error to a log file.
The path of the log file is controlled by the LogPathVariable and RollbackLogPathVariable attributes.
Making it the default
Protocol is debatable.
ExePackage process does not close its standard output and standard input before exiting, then Burn will hang.
ExePackage may output sensitive information that shouldn't be logged.
However, Burn was designed to enable troubleshooting as much as possible with default settings so this is keeping in line with that design.
This functionality could have been added as a separate attribute.
But since all of the existing
BurnExeProtocolTypes already handled creating a log file, it didn't make sense to have the ability to add this on top.