PDA

View Full Version : Execute external exe with parameters using InstallShield.



deepti_raina
09-24-2013, 04:35 AM
hi,

I have to execute a java code for which created exe. Tried to launch this exe using LaunchAppAndWait,
something like this:
LaunchAppAndWait(szProgram,szCmdLine, LAAW_OPTION_WAIT);
where szProgram="sampleJavaCode.exe"
and szCmdLine="param1 param2>log.txt".

With this code, command prompt is launched and then nothing happens.

Need help.

RobertDickau
09-25-2013, 07:33 AM
This thread might help. The Windows functions that LaunchAppAndWait uses don't support output redirection with > (the command processor does that), so you might need to launch a batch file or launch cmd.exe directly, assuming the command works without the > part.