When you develop software products, you are often based on certain software and libraries, like our project, which uses. Net framework3.5,mapinfo,sqlserver Express,installer 4.5. That user to use our products, must have the above environment can, these things will not let users themselves to install, need us to deploy for users, so that users will feel that your software is really good to use, do not feel trouble right?
Before using Installshield2008, the. Net Framework does not support 3.5, and does not support installer4.5, you need to detect the environment in the script, run the appropriate installation program, the disadvantage is that the user interface is very rigid, a prompt box " Installing for you ... "and then the interface died there, and the experience was rather poor, but the knowledge was shallow and did not make prerequisites.
Fortunately, installshield2010 supports more components than Installshield2008, which can be seen in "Application Data\prerequisites", which are best downloaded and compressed into the installation package themselves. Users of the province need to download the network without these components, if the network speed is slow, it is to wait until the lily is cold. Download method: Select the components that need to download, click "Download Selected Item", so InstallShield will download this component for you, save directory for InstallShield installation directory \installshield\2010\ Setupprerequisites, although you uninstall InstallShield, do not put in this directory you download things to delete, but I still copy them out for a rainy day. After the download is complete, this option is hooked up and an interface is displayed for you when you run the installation package:
is not very good ah, although the InstallShield style, but still said the past.
Customizing Pre-installed Components
Someone might ask, what if the component I want is not in the InstallShield? Don't worry, as long as you follow the InstallShield rules, in the InstallShield installation directory \installshield\20010\setupprerequisites this directory, Make a. prq file and only have this. prq file so that you can see it in "Application Data\prerequisites". Edit this. Prq work you can do in InstallShield "Application Data\prerequisites", right click on this component, in the popup menu click "Edit Prerequisite", Because our. Prq has nothing inside, but don't worry, when you've configured everything, InstallShield will generate a properly formatted. prq file for you.
Let's start with MapInfo as an example and create a. prq File yourself:
1. Create a TXT file under the InstallShield installation directory \installshield\20010\setupprerequisites This directory, named MapInfo, suffix ". Prq";
2. Open Installshield2010, in the "Application Data\prerequisites" right panel, locate the "MapInfo" component, right-click on "Edit prerequisite",
The configuration interface will appear.
3. Next we configure the tab in the configuration panel separately
(1) Properties
The first item is that the unique ID of the component is Installshield2010 automatically generated for us and does not need to be changed.
The second item is where to download this. prq file, which I did not write, is estimated to be for others to see.
Next is the description of this component, this description is not seen during the installation process, do not know what to do, it may be to see for yourself, we wrote "This prerequisite installs the mapxtreme-ch-trial for your systems."
(2) Conditions
Need to install this component, of course, we need to judge, according to what? InstallShield provides us with a number of ways, such as whether the registry, the system is XP or server2003, and if a file exists,
Previously, the basic use of the script to operate the registry to judge, and this principle is the same. We determine if the MapInfo is installed based on whether the hkey_local_machine\software\mapinfo\mapxtreme\7.0.0 key exists, select "A registry key does or does not exist ", in the" Spercify the registry key name to check: "Fill in" hkey_local_machine\software\mapinfo\mapxtreme\7.0.0 ", the system select default," Run This prerequisite "select" If the specified registry key DOES not EXISTS ".
(3) Files to Include
This is of course to install the installation package for this component, where I chose MapInfo's installation package
(4) Application to Run
Here you choose to install this component needs to run the installation package, is the above "Files to Include" in the Mapxtreme-ch-trial.exe, the more troublesome is the following parameters, half of our installation of these components, we do not want to let users
See the installation interface of this component, so you need to install silently, different company products Silent installation command may be different, if you want to install the component is not Installshield2010 support, then these silent parameters may take a long time to find. The silent installation parameter for MapInfo is "/v/ Qn ". Another parameter is the restart parameter, if your component needs to restart the computer, you need to configure this parameter, we do not need to restart. However, as far as I know, the standard MSI installation package restart parameters are 1641,3010.
(5) Behavior
This is the configuration to install this component required permissions, as well as the behavior of the runtime, here can be configured according to their own needs, such as our products are dependent on MapInfo, so if the MapInfo installation fails, even if the installation is complete can not be used, so in the "If,after Installing the prerequisite,the conditions still indicate it is required "select" Abort the Setup ".
(6) Depencies
According to InstallShield's description, it should be easy to understand that you are specifying the. prq file for the components that need to be installed before the component is installed, which you can look at Windows Installer 4.5 Update for Windows XP SP3 and later (x86) can see it's "Depencies" under "Windows Installer 4.5 for Windows XP SP2 and later (x86)." Prq "That's where you're installing Windows Installer 4 .5 Update for Windows XP SP3 before you need to install Windows Installer 4.5 for Windows XP SP2. This is a view of the needs of the people themselves can be defined. There is no special need for this mapinfo, it is not configured here.
(7) OK, click "File-save".
We open the InstallShield installation directory \installshield\20010\setupprerequisites directory MAPINFO.PRQ can see the following:
Then tick on this component, the installation package will be run at the time to detect whether the system installed MapInfo, if not it will be installed for us.
Well, everyone here should know how to do the pre-assembled components. This piece I know so much, if there is not the place to hope that you have the talent to teach, and if someone see this article would like to leave you to do the pre-assembled components of the silent installation parameters and restart parameters, etc., I will summarize in the future, convenient for everyone to use, greatly appreciated!
InstallShield 2010 Pre-installed components and software--a little theory