How to: Debug file paths when calling external files (commonly used with the launchappandwait and Launchapp functions)
is when the external file is called, it is generally used launchappandwait function, such as
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 Http://www.cnblogs.com/Cindy_weiwei/archive/2009/05/19/1460232.html A complete example of the InstallShield installation program-the goddess of the Sea of Azeroth (iii)-- Advanced Setup One
The meaning of this code is to use the Launchappandwait function to start an external installer, if the startup is unsuccessful, a warning box pops up
This code error is launchappandwait (srcdisk^ "jdk\\ Jdk-6u4-windows-i586-p.exe "," ", laaw_option_wait) This function calls the path of the file, many people are prone to write the wrong path, and do not know how to debug. is actually provided to help debug the function--findfile (szpath, szFileName, Svresult); The
only needs to add
STRING Svresult before that code;
if (FindFile (srcdisk^ "JDK", "Jdk-6u4-windows-i586-p.exe", Svresult) < 0) then
MessageBox ("FindFile failed.", SEVERE); The
will be able to see if your file path is correctly written.