How to: Debug file paths when calling external files (commonly used with the launchappandwait and Launchapp functions)

Source: Internet
Author: User

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.

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.