如何创建具有水晶报表先决条件的 .NET 安装项目?

How to create a .NET setup project with crystal report prerequisite?(如何创建具有水晶报表先决条件的 .NET 安装项目?)
本文介绍了如何创建具有水晶报表先决条件的 .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?

问候

推荐答案

您的 Programs 文件夹中有一个名为 Microsoft Visual Studio 9.0Crystal ReportsCRRedistIA64 的文件夹.在那里你会找到一个可再分发的包.只需将此文件添加到您的设置项目 - 用户定义的操作 - 并安装它.

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.

在 setupProject 中添加一个 mergeModul(右键单击 setupProject 上的解决方案资源管理器,添加 mergeModul).一个名为 C:Program Files (x86)Common FilesMerge Modules 的文件夹应该会自动出现.在那里您可能会找到一个名为 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 I 和 MS CrystalReport II

What kind of CrystalReport package to use, look at: MS CrystalReport I and MS CrystalReport II

这篇关于如何创建具有水晶报表先决条件的 .NET 安装项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)