Archive: nsExec::ExecToLog parameter length prob


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


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