我曾在.NET桌面应用程序,它使用水晶报表生成报告的PDF / MS Word中。不过,我现在想部署该应用程序与Visual Studio安装项目。现在,找到一种方法,undle的水晶报表包以某种方式,让他们也可以在未安装水晶报表中的电脑上自动安装。我怎样才能做到这一点吗?
I have worked on a desktop application in .net and it uses crystal report for generating report in pdf/ms word. However, I am now trying to deploying this app with visual studio setup project. Now, finding a way to undle the crystal report bundles in some way so that they can also install automatically on a pc where crystal report isn't installed. How can I achieve this please?
问候
有一个在你的程序文件夹,名为微软的Visual Studio 9.0 Crystal报告 CRRedist IA64文件夹中。在那里,你会发现再发行组件包。就在这个文件添加到您的安装项目 - 用户定义的操作 - 并安装
There is a folder called Microsoft Visual Studio 9.0Crystal ReportsCRRedistIA64 in your Programs folder. There you will find a redistributable package. Just add this file to your setup project - user defined actions - and install it.
编辑:正如你所说setupProject CustomActions只允许EXE / DLL文件
edit: As you mentioned setupProject CustomActions only allows exe/dll files
我找到了另一种解决办法。希望这那些满足您的需求。
I found another solution. Hope this ones satisfies your needs.
添加mergeModul您setupProject(右键单击解决方案资源管理器中setupProject,加mergeModul)。名为C的文件夹: Program Files文件(x86)的 Common Files文件合并模块会自动显示出来。在那里,你可以找到一个名为CrystallReportsRedistxxx.msm文件。添加到您的项目,并应安装了。
Add a mergeModul to your setupProject (right-click solution explorer on setupProject, add mergeModul). A folder called C:Program Files (x86)Common FilesMerge Modules should automatically show up. There you may find a file called CrystallReportsRedistxxx.msm. Add this to your project and it should install too.
要找到合适的MergeModul为您的版本看看: BusinessObjects_CrystallReports
To find the right MergeModul for your version have a look at: BusinessObjects_CrystallReports
添加MergeModul到setupProjects看: SetupMergeModul
Adding MergeModul to setupProjects look at: SetupMergeModul
要使用什么样的CrystalReport包,看:的 MS CrystalReport我和 MS CrystalReport II
What kind of CrystalReport package to use, look at: MS CrystalReport I and MS CrystalReport II
心连心