Automatically install. NET Framework and Data Access Components when you deploy a program.
1. Download the plug-in, complete the installation. http://download.microsoft.com/download/4/e/f/4ef7254b-d6c2-4f6f-8028-f03a594d5edf/PluginInstaller.msi, and install the plug-in.
2. Install the framework
Create an installation project. Do not talk about other operations here. This document only describes how to automatically install the framework when installing a project.
For Windows Installation Projects, You can automatically install the framework without any operations. For web projects, modify the settings and open the Properties window of the installation project. Right-click the project and click Properties, A window is displayed. In this window, we can see the Bootstrap program. Select Web Bootstrap program. If you do not want to automatically install the window project, you can select none.
3. Automatically install Data Access Components
- Create an installation project, select a project, open the startup condition editor window of the Project, right-click the target computer node in the window on the left, and add a "add Registry Search ", select this search registryentry1 node, open its Properties window, and set the regkey value to software/Microsoft/dataaccess.
- Set the root property value to vsdrrhklm.
- Set the value attribute to fullinstallver.
- Set the property value to mdacsearch.
- Right-click a start condition on the start condition node and select the generated condition1 node. In this node's Properties window, select the condition attribute and set it to mdacsearch> = "2.6 ".
- The last step is to add the previous steps for installing the framework (the step for modifying the Bootstrap program)
The above two installation operations can be performed in the same installation project