Answers to some frequently asked questions in InstallShield-by the goddess of the sea of azelas

Source: Internet
Author: User

Previous Article: a complete installer instance-goddess of the sea of azelas (5)-Addendum
Make sure to keep the source and words produced by the goddess of the sea of azelas. If you want to publish them, contact the author. Little_fairycat@126.com.

Q: How can I replace the setup.exe icon?

A: This is not a recommended operation, because it may cause unforeseen errors and is not open. If you insist on doing so, you can use third-party software such as exists to replace icons.

Q: How do I remove the InstallShield wizard text in the upper-left corner of the installation interface?

A: Installation designer-> Installation information-> General Information-> string tables-> your language, right-click it and choose export string tables to export it as a text file, replace the corresponding "InstallShield wizard" field with a blank string. We recommend that you back up the data before modifying it.

Q: How do I customize the title or description of each installation interface?

A: Installation designer-> behavior and logic-> installscript-> setup. RUL. If this file is not available, a new file is added under the file. The default name is the file name. I tested it under the installscript MSI type, and others may be slightly different.

Open the onfirstuibefore function in setup. rul. This function shows all the interfaces during installation. On the interface to be modified, assign the title or descriptive text to the desired value.

Example:

Dlg_sdwelcome:

Sztitle = "";

Szmsg = "";

Nresult = sdwelcome (sztitle, szmsg );

If (nresult = back) goto dlg_sdwelcome;

Sztitle = "";

Svname = "";

Svcompany = "";

Sztitle is the title displayed on the welcome page during installation. For example, you can change it to sztitle = "Welcome to XX software.

Q: How do I not bring up the "Modify, repair, remove" interface during uninstallation, but click "Uninstall" to unmount it directly?

A: In installation designer-> behavior and logic-> installscrip, open the onmaintuibefore function in setup. rul and find dlg_start :.CodeComment out all, that is, remove all content from the above line from dlg_start: To dlg_sdfeaturetree, and add a ntype = removeall; before dlg_sdfeaturetree, in this way, the "Modify, repair, remove" interface is not displayed, but the delete action is directly performed.

Q: How can I install. net on the target machine if it is not installed on the target machine?

A: In the last three steps of release wizard, check the "include or setup. NET Framework" option.

Q: How do I call third-party software?

A: Choose installation designer> behavior and logic> installscript> setup. RUL uses the launchappandwait or launchapp functions. As for the specific application, you can write them in functions such as onbegin and onfirstuibefore. For more information about how to install InstallShieldProgram-The goddess of the sea of azelas, which is available for download from csdn. Alternatively, you can join the official QQ Group of the InstallShield Chinese forum to obtain the file shared in the group.

When I wrote this document, some netizens told me that installshield2009 does not need to write such a complicated script. Instead, they have an interface that allows users to specify a registry key value, and specify the path of the software to be installed. When the key value does not exist, the specified software is automatically called. If you are interested, you can study it.

Q: How do I call the BAT file?

A: Use the launchappandwait or launchapp functions in installation designer> behavior and logic> installscript> setup. rul.

Q: How do I create an uninstall shortcut for my program in the Start menu?

A: Some engineering types such as installscript MSI have this option, but it is not recommended before version 08 because it is easy to cause system crash. writing scripts is a good solution. The Code is as follows, but for detailed explanations, please refer to my other document "a complete InstallShield installer-the goddess of the sea of azelas", which has been downloaded from csdn. Alternatively, you can join the official QQ Group of the InstallShield Chinese forum to obtain the file shared in the group.

Szfilename = uninstall_string + "/uninstall ";

Nresult = strfind (szfilename, ". EXE ");

If nresult> = 0 then

Strsub (szmsg1, szfilename, 0, nresult + 4 );

Strsub (szmsg2, szfilename, nresult + 4,200 );

Longpathtoquote (szmsg1, false );

Longpathtoquote (szmsg2, false );

Szfilename = "\" "+ szmsg1 +" \ "" + szmsg2;

Endif;

Addfoldericon (folder_programs ^ "test", "Uninstall", szfilename, WINDIR, "", 0, "", replace );

Q: How do I modify the uninstall icon of my software in "add or delete programs?

A: Project assisant-> application information, select the icon to display your application in add or remove program, and click browse to select the desired icon.

Next article: Check host name and MAC address based on IP Address

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.