InstallShield Custom Installation Interface __installshield

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 Project Type
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:
First you need to add the BMP format (size 499*58 pixel) file to the support Files/language independent directory. 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 in the dialog view, the corresponding dialog box named controlid_1200Can be deleted directly from the control.
In the InstallScript project, each external dialog box has a name named controlid_551Bitmap control 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 is run, so the user cannot modify it. 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.
Attention: 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 problems that occur in the installation package initialization interface, the first two types of engineering are the same, choose 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.