Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Getting a return value from a program


1 reply to this topic

dkenny

dkenny
  • Members
  • 4 posts

Posted 28 May 2002 - 14:44

I want to test a connection to a database using details entered during an install.
I am currently using the LaunchAppAndWait function to call a batch file that executes an osql query.

This sets %ERRORLEVEL% to 0 if is suceeds in contacting the database and 1 or -1 otherwise..

Is there any way to check this from within installshield or can someone suggest another way ???

Thanks,

Perotin

Perotin
  • Full Members
  • 407 posts

Posted 04 June 2002 - 13:26

If ERRORLEVEL still exists after closing the batch file's DOS session, IS may be able to get the system variable's content, but a different approach may be to get the error level within the batch file and write the return code into a text file which can be analyzed by the installation script ...
Gruß / regards
Thomas