InstallShield Custom Installation Interface __initialization

Source: Internet
Author: User

Preface:

For some InstallShield users or enterprises, in addition to the installation of the package interface with the default installation dialog box, sometimes may need to use the installation interface of the platform for product or corporate image promotion, Custom Installation dialog box. Here's how you can customize the dialog box in the installation process in Installscript,basic MSI or InstallScript MSI project.

Setup dialog box type :

The installer installation interface is divided into two categories, external dialog box and Internal dialog box. The external dialog box refers to the front and end of the installation, typically the welcome and End dialog boxes, and the other dialog boxes between the Welcome and End dialog boxes are called internal dialogs.

Example of an external dialog box (pictured below):

Example of an internal dialog box (pictured below)

The specific project types are described below to customize the dialog box.

InstallScript type of Project

Internal dialog box:

In InstallScript engineering, you can specify the resource file (BMP format only) that is displayed in the internal dialog box through the function Dialogsetinfo, as follows:

You first need to add the BMP format (size 499*58 pixel) file to the language independent directory in the Support Files/billboards view. The following figure

Then add the following code in the event response function Onbegin:

Dialogsetinfo (dlg_info_altimage, Supportdir ^ "Bear_banner.bmp", TRUE);

After recompiling the release, the internal dialog box will display our custom resources, as shown in the following figure:

External dialog box:

In the front of the event response function Onbegin Call the function Dialogsetinfo picture resource, embedded in the External dialog box, the effect of the following figure:

If you do not need this inserted picture, you can directly delete the control named controlid_1200 in the corresponding dialog box in the dialog view.

In InstallScript Engineering, each external dialog box has a bitmap control named controlid_551 , whose property file name points to a diagram file (the default size is 220*370 pixels):

<isproductfolder>/script/dialogs/bitmapid_103.bmp

You can reassign a custom bitmap file directly in each external dialog box.

After recompiling, the effect is as follows:

External dialog boxes involving modifications include welcome,sdwelcome,sdfinish,sdfinishreboot,sdfinishupdate (Ex), Sdfinishupdatereboot, and Sdpatchwelcome , of course, the above dialog box can be modified according to the needs of the selection.

In this way, we have completed the modification of the custom dialog box resources for the InstallScript project.

Although we have completed the customization of the internal and external dialog boxes, careful users will find that the InstallShield resource files are still displayed when the installation is initialized, because this part of the content is displayed before the script code runs. So the user cannot modify (the resource file can be modified by Exescope). However, we can set the value of the property Small initialization dialog to Yes in the release view, and now the Small dialog box will be displayed when the installation is initialized, and the display standard bitmap will not be loaded, as shown in the following figure:

Basic MSI Project Type:

Internal dialog box:

In the Basic MSI Project Internal dialog box, there is a bitmap control called "Banner", which points to a bitmap file (499*58 jpeg, with an IBD extension). Default point:

<isproductfolder>/redist/language Independent/os INDEPENDENT/ISDIALOGBANNER.IBD

You can make changes to each internal dialog box in the dialog view, including Adminchangefolder,adminnetworklocation,customerinformation,customsetup, Customsetuptips,databasefolder,destinationfolder,diskspacerequirements,filesinuse,installchangefolder, Licenseagreement,maintenancetype,msirmfilesinuse,outofspace,readytoinstall,readytoremove,setupinterrupted, Setupprogress,setuptype.

The modified effect is as follows:

External dialog box:

In the Basic MSI Project External dialog box, there is a bitmap control called "Image" that points to a bitmap file (499*312 jpeg, with an IBD extension). Default point:

<isproductfolder>/redist/language Independent/os INDEPENDENT/ISDIALOGBITMAP.IBD

You can modify each external dialog box in the dialog view, including Adminwelcome, Installwelcome, Maintenancewelcome,patchwelcome, Setupcompleteerror, Setupcompletesuccess,setupinitialization,setupinterrupted,setupresume,splashbitmap.

The effect of the modified image is as follows:

For the installation package initialization interface problems, the treatment method is the same as InstallScript engineering, select Small initialization Dialog.

Note : For basic MSI Engineering, there is also a more convenient way to customize the interface, which is Project Assistant, in the upper-left corner of the installation localization interface of Project Assistant, There is a use custom images on dialogs. It allows you to set up a custom interface directly.

InstallScript MSI Project Type:

The InstallScript MSI project type is a direct engineering type between InstallScript and basic MSI, and its dialogs are handled in part with the InstallScript, so we can refer to the InstallScript project for Setup.

The external dialog box effects are as follows:

The internal dialog box effects are as follows:

For the installation package initialization interface problems occur, the first two types of treatment of the same type of project, select Small initialization Dialog.

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.