Automatically install .NET Framework and data access components when deploying procedures
1. Download the plugin and install it. Http: //download.microsoft.com/download/4/e/f/4ef7254b-d6c2-4f6f-8028-f03a594d5edf/plugininstaller.msi, and installed this plugin installation.
2 Install Framework
Create a installation project, other operations are not taking here. Just talk about how to automatically install Framework when installing the project installation.
For Window Installation Items, you can automatically install the Framework, web project, to make a modification, open the properties window of the installation item, select the project point right click, click the point attribute, and pop up a window, here In the window, we see this item with the boot program, select the web boot program, if you have a Window project, you don't want to install automatically, you can choose nothing.
3. Automatically install data access components
Create a installation item, select the project, open the start condition editor window of the project, right-click on the left window, add a "Add Registry Search", select this search registryentry1 node, open its properties window Set the value of Regkey to Software / Microsoft / DataAccess. Set the property value of the root to vsdrhklm. Set the value of value to Fullinstallver. Set the property value of the property to mdacsearch. Right-click on the Start condition node Add a startup Condition, select the Condition1 node generated in this node. In this node, select the condition attribute in this node, and set it to mdacsearch> = "2.6". The last step is to add the steps to install Framework (the step of the bootstrap)
The above two installation operations can be performed in the same installation item