如何创建具有水晶报表先决条件的 .NET 安装项目?
我在.net 中开发了一个桌面应用程序,它使用水晶报告来生成 pdf/ms word 报告。但是,我现在尝试使用 Visual Studio 安装项目来部署此应用程序。现在,正在寻找一种方法以某种方式捆绑水晶报表程序集,以便它们也可以自动安装在未安装水晶报表的电脑上。请问我怎样才能实现这个目标?
问候
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 bundle the crystal report assemblies 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?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Programs 文件夹中有一个名为 Microsoft Visual Studio 9.0\Crystal Reports\CRRedist\IA64 的文件夹。在那里你会发现一个可再发行的包。只需将此文件添加到您的安装项目 - 用户定义的操作 - 并安装它。
编辑:正如您提到的 setupProject CustomActions 仅允许 exe/dll 文件,
我找到了另一个解决方案。希望这些能满足您的需求。
将 mergeModul 添加到 setupProject(右键单击 setupProject 上的解决方案资源管理器,添加 mergeModul)。名为 C:\Program Files (x86)\Common Files\Merge Modules 的文件夹应该会自动显示。您可能会在其中找到一个名为 CrystallReportsRedistxxx.msm 的文件。将其添加到您的项目中,它也应该安装。
要找到适合您的版本的 MergeModul,请查看:BusinessObjects_CrystallReports
将 MergeModul 添加到setupProjects看看:SetupMergeModul
CrystalReport是什么样的要使用的包,请查看: MS CrystalReport I< /a> 和 MS CrystalReport II
哈
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.
edit: As you mentioned setupProject CustomActions only allows exe/dll files
I found another solution. Hope this ones satisfies your needs.
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.
To find the right MergeModul for your version have a look at: BusinessObjects_CrystallReports
Adding MergeModul to setupProjects look at: SetupMergeModul
What kind of CrystalReport package to use, look at: MS CrystalReport I and MS CrystalReport II
hth