Setup project with crystal reports and VS2010 fails to register crystal dlls

假装没事ソ 提交于 2020-01-01 05:43:49

问题


I built some crystal reports in VS2010, and made a setup project for it. It deploys fine on my dev machine, but I get the following error while trying to install it on the client machine.

I have googled this error for sometime and found that the VC++ 2005 redistributables are a prereq. I have added these merge modules to my setup project but I still get the same error.

I have also added .NET 4.0 as a prerequisite, and still get the same error. Anybody has any ideas?

My dev machine is running Windows 7, and I am trying to deploy it on a Windows server 2008 R2 machine.


回答1:


For anyone else's reference, I ended up adding Crystal Reports Runtime Engine for .NET 4.0 as a prerequisite and just make the user download it if they dont have it installed. I also had to add a .NET 4.0 prerequisite (not the client profile) and of course the merge modules (CRRuntime_13_0.msm). If anyone has a better way of getting this to work, I am still interested. Thanks!




回答2:


Try this one

http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp




回答3:


I installed CRRuntime_32bit_13_0_8.msi on 64bit and finally worked




回答4:


The merge modules you have added are from VC++ 2008 redistributable, not 2005.

You can download the correct redistributable from the following link:
Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)

That contains the required Microsoft_VC80_CRT_x86.msm, Microsoft_VC80_MFC_x86.msm, Microsoft_VC80_ATL_x86.msm and Microsoft_VC80_OpenMP_x86.msm, as noted here.


AFAIK, There's no need to .NET 4.0 as a prerequisite, at least for Crystal Reports Runtime for VS 2010. The above redistributable added to the setup project, all that error messages are gone.


NOTE:
To add the VC++ 2005 redistributable to the VS setup project, a corresponding bootstrapper package should be added in the following folder (for VS 2010):
%Program Files%\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages

Or %ProgramFiles(x86)% folder on 64-bit Windows.

UPDATE:
To create a prerequisite bootstrapper package, see the following links (borrowed from here):
Deploying Custom made Visual Studio prerequisites using Bootstrapper Manifest Generator
Creating Bootstrapper Packages



来源:https://stackoverflow.com/questions/4748632/setup-project-with-crystal-reports-and-vs2010-fails-to-register-crystal-dlls

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