DTTerastar
11th April 2006 19:47 UTC
Output Details to Standard Output
I've tried using the install.log but it's really really long and wordy. Helpful to fix bugs i'm sure, but impossible to find the actual reason for a install failure in my automated build system. I would a command line that outputs just the Details information to standard output when installing silently.
This would make the silent install much more usefull for continuous integration builds.
Thanks!
Darrell
Anders
12th April 2006 00:21 UTC
Maybe you could call GetStdHandle with a custom plugin or the system plugin then output to that (Not sure if that works with a non CLI app) You might have to call AllocConsole first, I'm not sure
DTTerastar
12th April 2006 14:32 UTC
I appreciate that you could do something very low level to make it work, but I really do believe that this should be a standard option. The silent mode is great, but losing all the details of what happened is NOT. And that install.log is not the same as just getting the details output.
Red Wine
12th April 2006 16:26 UTC
Kichik's function from manual "D.4 Dump Content of Log Window to File" is the best that I know so far, though, it works for normal installations only.
DTTerastar
12th April 2006 16:58 UTC
I read that one, but yes my installer is silent and needs to be silent.
kichik
14th April 2006 11:09 UTC
You can have your installer parse the command line for a special switch that'd make it skip every page but the instfiles page. It'll be half-silent...
DTTerastar
14th April 2006 15:37 UTC
Is that because all the logging goes through the GUI? There is no actual place to catch all the calls to log to the details? How about a hidden window on silent that can catch all the calls to write to the details and the installer can monitor the hidden window and write to standard out any new text.
kichik
14th April 2006 16:32 UTC
All GUI logging goes through the GUI. The function used is update_status_text. You can't create a hidden window that'll catch it.