Install sap crystal report as prerequiste in clickonce deployment

自古美人都是妖i 提交于 2019-12-05 02:38:58

问题


I have a client WPF which uses crystal reports. For now in client machine I have to install separately the crystal reports and then the app. Is there a way to attach it with the app installation?

I tried to add this as a perquisite in publish properties but it gives error during publish as it can't find on the local machine under Crystal Reports for .NET Framework 4.0 folder.


回答1:


Here is my take on this:

Step 1: Install SAP crystal runtime from here. Make sure you download both 32 and 64 bit msi of correct version, in my case it was 13.0.12, in your case it could be different, so be sure before you download.

Step 2: Once download put the both 32 and 64 bit msi under sdk directory. Default location would be: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0

Step 3: Go to publish properties of the project, select application perquisite, check mark SAP Crystal Reports Runtime Engine, and also choose download prerequisite from same location as my application.

Step 4: Right click the project and publish, you will see now crystal report installation included in your once click app.

Hope this helps.



来源:https://stackoverflow.com/questions/35590009/install-sap-crystal-report-as-prerequiste-in-clickonce-deployment

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