How to Crystal Report Merge Module

The following section shows how to create a setup file for Crystal Reports Client side installations using Merge Modules.

If you are new to Crystal Reports and do not know how to create Crystal Reports from C# , please take a look at the section step by step tutorial for creating a Crystal Reports from C#.

In the previous section How to install C# Crystal Reports on Clinet machine , we already saw how to deploy a Crystal Reports components and assemblies on the target machine using CRRedist2005_x86.msi file. Here we are creating a separate setup file for client side installations using Crystal Report Merge Modules.

Crystal Reports utilizes merge modules to ensure the accurate installation of report components and assemblies within your C# project deployment. Merge modules are collections of components that are merged with a Windows installer, thereby facilitating the installation of required dependencies for specific applications.

To create a setup file for Crystal Reports client-side installation using merge modules, follow these steps:

Before creating a setup project, make sure that the following files exist in the \Program Files\Common Files\Merge Modules folder.

CrystalReportsRedist2005_x86.msm Microsoft_VC80_ATL_x86.msm policy_8_0_Microsoft_VC80_ATL_x86.msm

Steps to create Setup file for your C# Application.

1) Make sure the above mentioned files are in the \Program Files\Common Files\Merge Modules folder , If the files are not there you can download the file and copy it to the folder \Program Files\Common Files\Merge Modules .

Download: https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11688

2) Open your Visual Studio

3) Select "New Project" from File menu.

crystal-reports-deploymet-1

4) Select "Setup and Deployment" from "Other Project Types"

5) In the "Solution Explorer", select your setup project, right-click, and select Add and Merge Module from the menu.

crystal-reports-merge-module

6) Select CrystalReportsRedist2005_x86.msm to your setup project.

The file available at \Program Files\Common Files\Merge Modules.

crystal-reports-merge-module-files

Then you can see Microsoft_VC80_ATL_x86.msm and policy_8_0_Microsoft_VC80_ATL_x86.msm will be automatically added in the Detected Decencies section.

7) Build your project.

Now you will get the setup file for distribution. Either you can add this setup file to your C# application installer or distribute it as a separate setup file.