Pack and update Windows intaller Components

Source: Internet
Author: User

Package Components

If your Program Java is required, that is, the JRE component must be installed on the client. How can I publish the JRE together with the program?
Let's take a look at the % Program Files \ Microsoft Visual Studio 8 \ SDK \ V2.0 \ bootstrapper \ packages directory. The components in this directory are in the "setup Project"
--> Properties --> click prerequisites in the pop-up dialog box --> A new dialog box is displayed. Select the component to be installed. You must check setup program to install ....
And Select Download prerequisites from the same location as my application, so that you can combine the components and use setup.exe to start component installation.
After understanding the component release principles, the components we need are displayed in the prerequisites dialog box.
We can refer to the packages \ crystalreports component to find the component EXE file, a package. xml under the product. xml and EN folders.
1. Product. XML is the installation information, which detects information during the installation process. The node installchecks --> registrycheck --> key = "HKLM \ SOFTWARE \"
This is the version number of the installation program of the Registry HKEY_LOCAL_MACHINE \ SOFTWARE; packagefiles node --> packagefile name is the installation started
Program name; command packagefile name must also be the name of the installer; if your installer needs to start the parameter, you can set it in the arguments attribute.
2. Package. XML is used to handle problems during the installation process. The displayname attribute is the name displayed, and the culture contacts package. XML in the en folder;
Make sure that the displayname of package. xml --> must be the same as the productcode of product. xml.
Therefore, you can copy the crystalreports file, rename the file (which is not directly related to component installation), and modify the product. xml and package. XML files.

Product. xml

Package. xml

Result:

Version update

Upgrade your program. when creating the installation package, you must change the content of the setup project-> property-> Version attribute,
If the previous content is not deleted, set removepreviousversions to false; otherwise, set it to true.


Related Article

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.