Old 16th January 2005, 11:30   #1
schnell18
Junior Member
 
Join Date: Jan 2005
Posts: 3
nsExec::ExecToLog parameter length prob

Hi, guys
I'm a Java developer and making a installer to simplify cruisecontrol setup on Windows. I use nsExec::ExecToLog to launch a java service wrapper program to register cruisecontrol as NT service. Unfortunately, it never succeed. I guess the parameter passed to nsExec::ExecToLog exceeds the limit.
(over 1024)So this function simply truncate the command line and render it invalid.

When I use Exec instead, the NT service installed successfully. But I need the effect of nsExec::ExecToLog.
I've taken a look at the source of nsExec::ExecToLog. It seems the author limited the length of command line to 1024. But I'm quite sure about that and don't know how to fix it. My C++ experience is quite limited and it has been 5 years since I last put a finger on C++ program.

So is there a patch to address this prob?

Regards,
Justin
schnell18 is offline   Reply With Quote
Old 16th January 2005, 14:11   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
You can try to increase buffers size in nsExec.c file and rebuild plug-in. And I updated dosExec plug-in for this, you can test it with your long string and NSIS special build http://forums.winamp.com/showthread....hreadid=181442
Takhir 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