Executing Java through installscript...Please Help
Posted 30 October 2007 - 08:40
I am bit new to installscript. I need to execute java code using installscript. I m using installshield 2008 professional.
Right now i am using batch file to execute java class and using LaunchAppAndWait function, it works fine but, if there is an exception while running the class how will my installer know....
Posted 31 October 2007 - 10:03
Posted 31 October 2007 - 11:04
but can you please elaborate more on it. I mean can you just show a piece of code so that i can understand.
Edited by shriraj, 31 October 2007 - 11:09.
Posted 31 October 2007 - 11:38
java FileCreation userid password > file.log > error.log
i dint knew the way to handle exception thrown by the class so i m printing the log(error.log).
But if you can suggest any another way, please let me know.
and also i need to pass some arguments like userid and password, is there any way to do so, but one more problem is that the total argument i pass can exceed 255 characters which is the limit of string.
i hope u understood my problem
Posted 01 November 2007 - 11:41
But m still stuck with passing arguments
Posted 01 November 2007 - 11:52
szProgram = "java.exe";
szCmdLine = "FileCreation userid password";
nResult = LaunchAppAndWait(szProgram, szCmdLine, LAAW_OPTION_WAIT);
if ( nResult < 0 ) then
MessageBox("Unable to launch "+ szProgram +".", SEVERE);
nExitCode = LAAW_PARAMETERS.nLaunchResult;