Recently in the study using Instanllshield to make the installation package, and to create data, to master the InstallShield in the
launchappandwait function This function is the effect of running other programs at run time, and can pass parameters and whether to run silently.
For example:
Szscriptpath =supportdir+ "\\CREATEORACLEUSER. SQL ";
Longpathtoquote (Szscriptpath, TRUE);
szCmdLine = DBUSER + "/" + Dbpass + "@" + DBNAME + "@" + Szscriptpath;
nresult=launchappandwait("Sqlplus.exe", szCmdLine, laaw_option_wait);
The above code is called a local sqlplus.exe to execute an SQL script. Very useful.
Syntax structure:
Launchappandwait (Szprogram, szCmdLine, noptions);
Szprogram: The program to open
szCmdLine: Open a command parameter to be passed by the program
noptions: Parameter options: Commonly used is laaw_option_wait, Laaw_option_hidden
Original address: http://bbs.delit.cn/thread-655-1-1.html
Reprint please specify the source:
Author: metric Technology www. Delit. cn
InstallShield a brief introduction to performing other program launchappandwait in the production installation package