How to: Debug file paths when calling external files (commonly used in launchappandwait and launchapp functions)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.