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.