Setup project with crystal reports and VS2010 fail

2019-03-29 07:52发布

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.

alt text

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.

alt text

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.

4条回答
够拽才男人
2楼-- · 2019-03-29 08:17

I installed CRRuntime_32bit_13_0_8.msi on 64bit and finally worked

查看更多
Melony?
3楼-- · 2019-03-29 08:23

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!

查看更多
爱情/是我丢掉的垃圾
5楼-- · 2019-03-29 08:34

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

查看更多
登录 后发表回答