I'm unclear as to whether AI supports the use of jdbc drivers for executing database scripts at install time.
If not, this would be something of a deficiency for a product that is supposed to support java applications?
Thanks,
MT
You can use custom actions. They can be used to run external programs or scripts (JScript, VBScript; which in turn can execute external programs).mctozzy wrote:OK then, is there a way to execute an "install-time" java application as a shell script?
Code: Select all
var shell = new ActiveXObject("WScript.Shell");
// Note that the path to the executable is quoted inside the
// string literal! (Otherwise, if the path contains space
// characters, an error occurs.)
var exec = "\"Path\to\executable\" parameters for executable";
shell.Run(exec, 0, true);
Also keep in mind that your application can possibly perform these steps, too.mctozzy wrote:OK then, is there a way to execute an "install-time" java application as a shell script?
This might be of interest to you:mctozzy wrote:Thanks... a key question though is whether it is possible to process a result code back from the external java program...so that the install can be aborted and rolled back if something goes wrong. I presume this would be possible?
Also, how does the installer run such a program, if that program is itself delivered through the installer? I suppose that depends upon the sequence of exactly when the script is run.
Re doing this things from the application itself - yes I agree that would be possible, but not at all desirable in the scenarios I am considering.