Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
N/A Found while creating custom actions for PDK, using the same code.
-
-
Night's Watch
-
1
-
PR - 2019-06-12, PR - 2019-06-25, PR - 2019-07-10
-
Needs Assessment
-
Bug Fix
-
Correctly log STDERR in MSI installer log
-
Needs Assessment
Description
In https://github.com/puppetlabs/puppet-agent/blob/e1a9b7d4b13ec4504d1fcbf70be1b42fbf2cff1a/resources/windows/wix/customactions.wxs.erb the ExecuteCommand function is supposed to redirect STDERR to STDOUT, which then logs to a file. However the order of the redirection is incorrect
Should be:
Dim exitCode : exitCode = wshShell.Run(Command & " > """ & tempFilePath & """ 2>&1 > ", 0, True)
|
The STDERR redirection must come after the file redirection.