.net Chart 必备组件 打包安装
来源:互联网 发布:网络接口接线法 编辑:程序博客网 时间:2024/05/16 08:35
Adding MS Chart Controls as a prerequisite in your Visual Studio 2008 installation package.
In order to specify a prerequisite to your deployment package something called a bootstrapper is needed. Unfortunately Microsoft do not provide a bootstrapper for the Chart Controls for the .Net Framework.
Luckily it is not too difficult to create your own bootstrapper.
Here's how to do it:
Firstly you need to locate the folder in which the bootstrapper files need to be. On my machine this is here: C:/Program Files/Microsoft SDKs/Windows/v6.0A/Bootstrapper/Packages/
Now you can either download the files that I have put together here and extract the contents of the zip file into this folder, or follow the instructions below to create the files yourself.
The zip file contains all the files required including the full MS Chart controls installation package, which you probably already have. So you may find it simpler to create the files yourself.
- Create a Folder called: Microsoft Chart Controls
- In this new folder create a file called product.xml
- Use Notepad to edit this file and add the following code:
<?xml version="1.0" encoding="utf-8" ?> <!-- Bootstrapper for MS Chart Controls. Created by Phil Preen, Feb 2009, use at your own risk --><Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="Microsoft.ChartControls"><RelatedProducts><DependsOnProduct Code="Microsoft.Net.Framework.3.5.SP1" /> </RelatedProducts><PackageFiles CopyAllPackageFiles="false"><PackageFile Name="MSChart.exe" HomeSite="MSChart.exe" /> </PackageFiles><InstallChecks /> <Commands><Command PackageFile="MSChart.exe"><ExitCodes><DefaultExitCode Result="Success" /> </ExitCodes></Command></Commands></Product>
- Copy MSChart.exe (the chart controls installation package) into this folder.
- Create a sub-folder called: en
- In this new folder create a file called package.xml
- Use Notepad to edit this file and add the following code:
<?xml version="1.0" encoding="utf-8" ?><!-- Bootstrapper for MS Chart Controls. Created by Phil Preen, Feb 2009, use at your own risk --><Package xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" Name="DisplayName" Culture="Culture" LicenseAgreement="eula.rtf"> <PackageFiles> <PackageFile Name="eula.rtf"/> </PackageFiles> <!-- Defines a localizable string table for error messages--> <Strings> <String Name="DisplayName">Microsoft Chart Controls for Dotnet Framework 3.5 SP1</String> <String Name="Culture">en</String> <String Name="AdminRequired">Administrator permissions are required to install Microsoft Chart Controls for Dotnet Framework 3.5 SP1. Contact your administrator.</String> <String Name="AnotherInstanceRunning">Another instance of setup is already running. The running instance must complete before this setup can proceed.</String> <String Name="GeneralFailure">A failure occurred attempting to install Microsoft Chart Controls for Dotnet Framework 3.5 SP1.</String> </Strings></Package>
- Copy eula.rtf (the chart controls license agreement) into this folder. To obtain this file, start the Chart Controls installer and choose the option to Save the license agreement.
Microsoft Chart Controls will now appear in the list of prerequisites in your Visual Studio deployment settings.
Note that because Microsoft Chart Controls is dependant upon the .Net Framework 3.5 SP1. It is necessary to have the Framework files available. See the instructions in the Visual Studio 2008 SP1 readme file here (see Section 2.3.1.1).
- .net Chart 必备组件 打包安装
- 发布Chart .Net 组件
- Wix打包系列(七) 添加系统必备组件的安装程序
- Wix打包系列(七) 添加系统必备组件的安装程序
- Wix打包系列(七) 添加系统必备组件的安装程序
- Wix打包系列(七) 添加系统必备组件的安装程序
- Wix打包系列(七) 添加系统必备组件的安装程序
- 安装sharepoint 2010 必备组件
- 安装必备组件失败 Wmf2008R2
- 解决打包安装中出现【系统必备的安装位置未设置为“组件供应商的网站”,无法在磁盘上找到项“Microsoft.Net.Framework.3.5.SP1”中的 xxxxx 】
- asp.net 2.0中使用OWC组件学习小结(Chart)
- VS.NET打包程序自定义安装组件中获得安装包所在路径的解决办法
- VB.net 打包安装
- asp.net打包安装
- Sharepoint安装必备组件下载地址
- Delphi中Chart组件,Chart控件用法
- .net打包自动安装数据库!
- .net打包自动安装数据库
- Linux内核调试
- ISO C标准定义的头文件
- The type java.lang.Object cannot be resolved
- Tomcat6.0 连接池的配置_oracle
- mtk模块
- .net Chart 必备组件 打包安装
- [C#] 我的log4net使用手册(完善中)
- 人生应该记住的16句话[良言]
- 智慧型能源家庭管理终端
- XtraGrid ControlGrid绑定及部分属性设置
- VB.Net几个函数split(),ubound(),lbound(),instr(),mid(),Format()与Round()
- 数学符号的读法
- COM 组件设计与应用(五) 用 ATL 写第一个组件
- Vss2005 配置(转)