Old 11th April 2006, 18:47   #1
DTTerastar
Junior Member
 
Join Date: Apr 2006
Posts: 4
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
DTTerastar is offline   Reply With Quote
Old 11th April 2006, 23:21   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th April 2006, 13:32   #3
DTTerastar
Junior Member
 
Join Date: Apr 2006
Posts: 4
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.
DTTerastar is offline   Reply With Quote
Old 12th April 2006, 15:26   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
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.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 12th April 2006, 15:58   #5
DTTerastar
Junior Member
 
Join Date: Apr 2006
Posts: 4
I read that one, but yes my installer is silent and needs to be silent.
DTTerastar is offline   Reply With Quote
Old 14th April 2006, 10:09   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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...

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 14th April 2006, 14:37   #7
DTTerastar
Junior Member
 
Join Date: Apr 2006
Posts: 4
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.
DTTerastar is offline   Reply With Quote
Old 14th April 2006, 15:32   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump