When calling external files in is, the launchappandwait function is generally used, such
If (launchappandwait (srcdisk ^ "JDK \ jdk-6u4-windows-i586-p.exe", "", laaw_option_wait) <0) then
MessageBox ("You haven't installed JDK 1.6.0 _ 04 yet! ", Information );
Endif;
See the http://www.cnblogs.com/Cindy_weiwei/archive/2009/05/19/1460232.html for a complete InstallShield InstallationProgramExample-Goddess of the ocean of azelas (3) -- Advanced Settings 1
This sectionCodeThe launchappandwait function is used to start an external Installer. If the installer fails to be started, a warning box is displayed.
This code is prone to errors is launchappandwait (srcdisk ^ "JDK \ jdk-6u4-windows-i586-p.exe", "", laaw_option_wait) in this function to call the file path, many people are easy to write the wrong path, I do not know how to debug it. In fact, is provides a function to help debugging-findfile (szpath, szfilename, svresult );
You only need to add
String svresult;
If (findfile (srcdisk ^ "JDK", "jdk-6u4-windows-i586-p.exe", svresult) <0) then
MessageBox ("findfile failed.", severe );
You can check whether your file path is correctly written.