InstallShield6.3 installation file production points

zhaozj2021-02-16  43

InstallShield6.3 installation file production points

There are quite a lot of tools for the installer, I still prefer to use installshield6.3, but the installshield6 feature is very powerful, you may find a lot of information about the installation program, but you have a big time to study, but find it still Very slight, this article is to help you solve this problem quickly. Of course, you have to write that the installation documents with your own personality need to spend another effort, but the introduction here should have a lot of affordable help.

First of all, you have to make a clear thing about the general installation program is 3 pieces:

l Copy the executable file (folder) and its required DLL to the user to specify the directory;

l Create shortcuts (desktop, start menu)

l write registry and other system information

Install InstallShield6

Note To make a Chinese version of the installer, you need to install the appropriate Oriental language pack separately.

2. Establish installation project by wizard

It is recommended that you can not fill in the content and you can't fill it, you have to make this soon, and you can also modify it. The remaining things are all based on the various settings of the project. Engineering settings include 7 categories:

1) Install the project components, the default has mainApp, tutorial, examples, is the content that will be installed by logically, allowing the user to select the necessary components when installing;

2) File group, the default APPEXCUTABLES, App Self Reg DLLs, Example Files, Tutorial Files, mainly the files to be packaged;

3) Resources, including strings, registry settings, desktops and program menus shortcuts, etc .;

4) Script, this is the source code for the installer;

5) Install the file, start screen, license, etc .;

6) Installation type, default, three types in Compact, Typical, Custom;

7) Media, generate package files, if you want to make an automatic decompression type: select the MEADIA item in the engineering workspace, right-click the first check box for the Packaging item. Others look at it.

3. Install the project component settings

4. File Groups settings

Common attribute:

l SHARE This file group file is shared, ie, is used by other programs. The default is NO.

l Uninstall This item is to be uninstalled, default is YES.

Add the file to be installed, and the following properties need to be set.

App Excutables: Source Path (Operation with Insert File); Target Path (Destination): Change Properties Settings, Note Using System Variables, such as Targetdir

Add Icon (icon):

l icon file: file containing icons;

l icon index: Index in the icon file, if the icon file contains only one, set it to 0;

l Install Conditions: Installation Conditions, install the item when you select a file group;

5. Resources

l Some properties to be set in the resource, such as L Start Menu-> Programs-> Startup (startup) (default startup)

l Pay attention to creating folders and shortcuts.

The above is to do the main content of the installation file. The other details will not be described. Below is a few very practical skills I summarized during use, I will return them to FAQ, if everyone encounters what problems do not prevent Come out, let's enrich this FAQ.

FAQ

6. Making of anti-installation procedures

InstallShield 6.3 The installer will record uninstall information by default, run the installer again (Setup.exe) automatically performs the reverse installation function.

l Create an unloading shortcut pointing: /setup.exe is OK.

7. Prohibition of reverse installation

InstallShield 6.3 Makeup package automatically with anti-installation capabilities, some people want to remove the anti-installation function, so others cannot delete the installed files by the "Add / Remove Programs" in the control panel. Of course, I don't advocate this, but from technology I can tell how to implement it.

After the installation is performed, the following is finally added to the following content.

Subkey = "// Software // Microsoft // Windows // CurrentVersion // Uninstall //" Product_GUID;

RegdbsetDefaultroot (HKEY_LOCAL_MACHINE);

IF (RegdbKeyexist (Subkey) = 1) THEN

RegdbdeleteKey (Subkey); // Delete Registry Information

Endif;

IF (! existsdir (disk1target))

Deletedir (Disk1Target, AllContents);

// Remove all files under the folder of the setup.exe that can perform the anti-installation function

Endif;

8. InstallShield6.3 installed installation, installed to the final copy file, appears after the end: "DLL function call failed: user32.MessageBoxa ..."?

This is because the registration of the DLL file fails. So the DLL file to be installed If you don't need to register, please select its self-registered property as NO.

转载请注明原文地址:https://www.9cbs.com/read-26336.html

New Post(0)