[Program installation package creation] advanced installer memo

Source: Internet
Author: User

Product Information-product details

This focuses on product version. Before talking about this, you must first understand the product code and Upgrade Code attributes, and do not be confused by the literal meanings of these two English words.

The product code of the installation packages of the same product and different versions must be different, but the Upgrade Code must be the same.

For example, there is a software named "Hello World" that has already created the 1.0.0 installation package. Now we need to create the 1.0.1 installation package. The upgrade code of 1.0.0 and 1.0.1 is the same. Otherwise, it will be regarded as the installation package of different products. Two uninstall projects will be generated during installation. At the same time, the product code of 1.0.0 and 1.0.1 is different. Otherwise, the system will mistakenly mistake the installation package of the same version, and the installation will not be correct at that time.

After understanding the meaning above, you can understand the product version. The product code is automatically changed as long as the version of the product version is changed, so that we can create a full update package.

Note that the valid version of product version supports 1.0.0 to the Third. When you enter 1.0.0.1 to save the project, the following message is displayed:

Windows Installer does not recognize the fourth-digit version. The fourth-digit change does not change the installation package to a new version (that is, the product code of the installation package is not changed). Therefore, if you create a full update package, the new version number must start with the third digit.

.
P.s.: The author generally uses the release date as the fourth version number. For example, the version number released on January 1, October 25 is 2.5.3.1025.

 

User Interface-dialogs
Click exitdialog In the dialogs tree menu. The configuration information is displayed at the bottom of the preview form, as shown in figure

Here, you can choose whether to read readme or start the application immediately after the configuration and installation are complete.Program.

User Interface-translations
If your installation package requires installation in multiple languages, it is very convenient to select the installation package language here, as shown in figure

Note the following three options:

Create separate packge to generate installation packages in multiple languages
Create separate packge and a multilingual packge generate installation packages in multiple languages and a hybrid package
Create only a multilingual packge only generates a hybrid package (the hybrid package contains multiple languages in one installation package)

 

Custom behavior-Search
I think this tool is very easy to use, one of the reasons is that custom behavior is quite useful.
In search, you can add the information you want to search for, the Registry, the installation file, and the configuration file. These search information will be provided to custom actions for use.
For example, here I want to install the program to search for the USB driver version number of pl2303

 

 

Custom behavior-Custom Actions
Here, you can set your own installation behaviors. For example, if you execute some applications or batch processing after installing the file, you can set it here.
For example, here I want to install the USB driver after the Installation File

Here, by the way, we will talk about the excution condition settings.

Excution condition. Therefore, the condition is the execution condition. The search defined above will be used here.
Open the edit box, a wide array of buttons and ComboBox ...... The previously defined search can be found in the property,

Then, enter the logical expression in the textbox. For example, the version number of the USB driver is not equal to "1.3.0 ".

 

Note:: The installation program above Vista may fail because of UAC.
The author also struggled for a long time here. Finally, in the official FAQ, I learned that as long as deferred with no impersonation is selected in excution options, the UAC interference problem can be solved.

Product Information-product details

This focuses on product version. Before talking about this, you must first understand the product code and Upgrade Code attributes, and do not be confused by the literal meanings of these two English words.

The product code of the installation packages of the same product and different versions must be different, but the Upgrade Code must be the same.

For example, there is a software named "Hello World" that has already created the 1.0.0 installation package. Now we need to create the 1.0.1 installation package. The upgrade code of 1.0.0 and 1.0.1 is the same. Otherwise, it will be regarded as the installation package of different products. Two uninstall projects will be generated during installation. At the same time, the product code of 1.0.0 and 1.0.1 is different. Otherwise, the system will mistakenly mistake the installation package of the same version, and the installation will not be correct at that time.

After understanding the meaning above, you can understand the product version. The product code is automatically changed as long as the version of the product version is changed, so that we can create a full update package.

Note that the valid version of product version supports 1.0.0 to the Third. When you enter 1.0.0.1 to save the project, the following message is displayed:

Windows Installer does not recognize the fourth-digit version. The fourth-digit change does not change the installation package to a new version (that is, the product code of the installation package is not changed). Therefore, if you create a full update package, the new version number must start with the third digit.

.
P.s.: The author generally uses the release date as the fourth version number. For example, the version number released on January 1, October 25 is 2.5.3.1025.

 

User Interface-dialogs
Click exitdialog In the dialogs tree menu. The configuration information is displayed at the bottom of the preview form, as shown in figure

Here, you can choose whether to read readme or start the application immediately after the configuration and installation is complete.

User Interface-translations
If your installation package requires installation in multiple languages, it is very convenient to select the installation package language here, as shown in figure

Note the following three options:

Create separate packge to generate installation packages in multiple languages
Create separate packge and a multilingual packge generate installation packages in multiple languages and a hybrid package
Create only a multilingual packge only generates a hybrid package (the hybrid package contains multiple languages in one installation package)

 

Custom behavior-Search
I think this tool is very easy to use, one of the reasons is that custom behavior is quite useful.
In search, you can add the information you want to search for, the Registry, the installation file, and the configuration file. These search information will be provided to custom actions for use.
For example, here I want to install the program to search for the USB driver version number of pl2303

 

 

Custom behavior-Custom Actions
Here, you can set your own installation behaviors. For example, if you execute some applications or batch processing after installing the file, you can set it here.
For example, here I want to install the USB driver after the Installation File

Here, by the way, we will talk about the excution condition settings.

Excution condition. Therefore, the condition is the execution condition. The search defined above will be used here.
Open the edit box, a wide array of buttons and ComboBox ...... The previously defined search can be found in the property,

Then, enter the logical expression in the textbox. For example, the version number of the USB driver is not equal to "1.3.0 ".

 

Note:: The installation program above Vista may fail because of UAC.
The author also struggled for a long time here. Finally, in the official FAQ, I learned that as long as deferred with no impersonation is selected in excution options, the UAC interference problem can be solved.

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.