How to create a .NET setup project with crystal report prerequisite?

旧城冷巷雨未停 提交于 2019-12-30 14:41:53

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/4779425/how-to-create-a-net-setup-project-with-crystal-report-prerequisite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!