PDA

View Full Version : How to Force the Installer to Exit based on an IA variable



macd81o0
01-18-2010, 04:38 PM
I'm looking for a way to force the Installer to exit based on the result of a script command or a IA vairable

Script:

source SYBASE.csh
isql -Usa -Ppassword -Userver

Output:

Msg 4002, Level 14, State 1:
Server 'server':
Login failed.
CT-LIBRARY error:
ct_connect(): protocol specific layer: external error: The attempt to connect to the server failed.

I was thinking of greping for 'Login failed'. if I find it, I would set the IA variable to some value.

pv7721
01-19-2010, 05:04 AM
You may want to look at the exit code returned by the script, there are variables provided by IA for example when using Execute Target File.