Old 17th October 2006, 14:49   #1
thhal
Junior Member
 
Join Date: Oct 2006
Posts: 2
Console output

Hi,
I used NSIS for the first time today so I'm a beginner.

My first task was to create a java launcher. I found a script on your wiki and tried various approaches but no matter what I do, I cannot make the launcher print a message on stdout (I tried nsExec, ExecCmd, ExedDos, etc.). Then it struck me. Perhaps that's the way it should be? I.e. a launcher generated with makensis will always be a windows application and there's no way it can send output to stdout, ever.

If that's the case, would it be a bad idea to ask for a compiler option that would turn the resulting exe into a command line executable?

Kind Regards,
Thomas Hallgren
thhal is offline   Reply With Quote
Old 17th October 2006, 14:53   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
That's the way it is. But, a search on the forum for "stdout" could get you a possible solution.

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 17th October 2006, 15:03   #3
thhal
Junior Member
 
Join Date: Oct 2006
Posts: 2
Thanks for the pointer.
Patching nsis to become a console application is of course an option but I'll need to keep two nsis instances around if I do that. Only my launcher is a console app (I'm planning installers as well). I'll also introduce a need to patch and recompile everytime I want a new nsis version.

Do you have any plans to provide a console option for nsis?
thhal is offline   Reply With Quote
Old 17th October 2006, 15:11   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
No, I don't.

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