如何创建一个.NET安装项目,水晶报表prerequisite? [英] How to create a .NET setup project with crystal report prerequisite?

查看:302
本文介绍了如何创建一个.NET安装项目,水晶报表prerequisite?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾在.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.0\Crystal Reports\CRRedist\IA64 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 Files\Merge 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

心连心

这篇关于如何创建一个.NET安装项目,水晶报表prerequisite?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆