.net - Installing a Vb.NET Windows application by including Crystal Report runtime -
i have windows application developed in vs2010 , .net framework 4.0. have used crystal reports in application.
we need create installer including crystal report runtime , required visual c++ dependencies per following link: http://wiki.sdn.sap.com/wiki/display/bobj/using+crystal+reports+for+visual+studio+2010+merge+modules+(msm)+to+create+a+setup+project
we tried below 2 solutions part of our effort far. errors when using installer install application on target machine.
the first solution included using following merge module files part of installer (as per above link):
1. crruntime_12_3.msm
2. microsoft_vc80_atl_x86.msm
3. microsoft_vc80_crt_x86.msm
4. microsoft_vc80_mfc_x86.msm
5. microsoft_vc80_openmp_x86.msm
the second included using following merge modules files part of installer (as per site: http://csharp.net-informations.com/crystal-reports/csharp-crystal-merge-module.htm):
1. crruntime_12_3.msm
2. crystalreportsredist2005_x86.msm
3. microsoft_vc80_atl_x86.msm
4. policy_8_0_microsoft_vc80_atl_x86.msm
just troubleshooting step, installed visual c++ dependency on target machine , tried installing application crystal report runtime file (crruntime_12_3.msm). unsuccesful.
all errors received far similar in nature, message saying failed register dll (querypanel.dll, crtslv.dll).
the target machine has windows 7 os , below installed: .net framework 4.0 client profile .net framework 4.0 extended microsoft visual c++ 2005 redistributable (i uninstall this, because need create installer adding dependency)
any on resolving appreciated.
i have found 2 workarounds this. explain them benefit else encounters same issue.
in first solution, need create 2 installers. 1 install c++ dependencies. installer should include c++ merge modules:
- microsoft_vc80_atl_x86.msm
- microsoft_vc80_crt_x86.msm
- microsoft_vc80_mfc_x86.msm
- microsoft_vc80_mfcloc_x86.msm
- microsoft_vc80_openmp_x86.msm
you need make sure in detected dependencies below policy files added. these policy files should available in merge module folder located @ c:\program files (x86)\common files. need refresh detected dependencies folder make sure policy files have been added:
- policy_8_0_microsoft_vc80_atl_x86
- policy_8_0_microsoft_vc80_crt_x86
- policy_8_0_microsoft_vc80_mfc_x86
- policy_8_0_microsoft_vc80_mfcloc_x86
- policy_8_0_microsoft_vc80_openmp_x86
next need create second installer contain application output , crystal report runtime merge module i.e.crruntime_12_3.msm.
run these installer in sequence , bingo, should have crystal reports in application working expected.
the second solution directly install c++ dependency installing following 2 components:
- visual c++ 2005 sp1 redistributable package
- microsoft visual c++ 2005 service pack 1 redistributable package atl security update
then run second installer created above includes application output , crystal report runtime merge module , should work fine.
assuming have built 32 bit application using 32 bit crystal report runtime, may run issue deals target systems configuration if 64 bit os. in case need play around configuration settings , make sure application installs 32 bit application only. else error saying: either crystal reports registry key permissions insufficient or.......
Comments
Post a Comment