Install sap crystal report as prerequiste in clickonce deployment - c#

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.

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.

Related

Installing Crystal Reports runtime with InstallShield 2013 LE

I am trying to make a setup for my program by using InstallShield 2013 LE and I am running it from within VS 2012. I have already downloaded and installed .NET 4.5 as one of the prerequisites under Specify Application Data -> Redistributables.
My application has reports that I made by installing CRforVS_redist_install_64bit_13_0_8 from the site http://scn.sap.com/docs/DOC-7824.
The reports and program run well. I know that I need to include the crystal reports runtime as part of my setup for deployment to other computers.
Under Specify Application Data -> Redistributables, I see Crystal Reports Basic for Visual Studio 2008. How do I add the right runtime version that I need to my program?
Also for some reason, I am unable to download even the 2008 version shown.
InstallShield Limited edition lacks the prereq editor found in Professional and above. You can download an eval and throw it on a VM and use it there. Correct the PRQ file and copy it back to your ISLE machine along with needed content.
Here's a basic tutorial on how to author PRQs:
Using InstallShield 12 to Install .NET Framework 3.0

Crystal Report gives error when publishing the project

I want to publish my Project Created in Visual Studio 2010. it was OK,before i add the Crystal Report, but after adding crystal report , it is not possible to publish it. this is the error i get
The install location for prerequisites has not been set to 'component vendor's web site' and the file 'Crystal Reports for .NET Framework 4.0\CRRuntime_64bit_13_0_3.msi' in item 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' can not be located on disk. See Help for more information.
The install location for prerequisites has not been set to 'component vendor's web site' and the file 'Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_3.msi' in item 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' can not be located on disk. See Help for more information.
I have installed Crystal Report for Visual Studio 2010. but i don't have CRRuntime_32bit_13_0_3.msi and CRRuntime_64bit_13_0_3.msi in
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0
what should i do?
You can download those files from here
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
And check out this link, maybe it solves your problem
Crystal reports problem

Adding References of Crystal Report DLLs

My OS is Windows 7 x64. Running VS Professional 2012. I'm working in a software written in C# and developed for .NET Framework 4.0 that uses Crystal Report. I've installed Crystal Report for developers version 13.0.5 on the machine.
I want to copy the required DLLs of Crystal Report to the output folder of the project. The purpose is to pack them with the installer so that the PC where the software will be installed won't be required to install Crystal Report.
I created a folder called DLLs and put the required Crystal Report DLLs in that folder. Then in the C# project's References node in solution explorer, I've added the DLLs located in DLLs folder. When I look in the added DLL's Property > Path, surprisingly I find that the path holds the path of the DLL from where I copied (C:\Program Files... instead of D:\Work...).
Why is this happening? How can I add reference to the copied DLL, not the original DLL?
Short Answer: Crystal Reports wont work without installing on client machines.
What you can do is doing some research about what does the Crystal Reports Installer does and doit yourself whithin you application. See here
Other sources: here and here, or google it.
Regards

Could not load file or assembly CrystalDecisions.VSDesigner Version=10.5.3700.0

i have a web application with visual studio 2008 and crystal report 2008 and all thing is fine
BUT
when i installed SAP crystal report 2010 , my be it crash with CR 2008
when i run my APP i get this message
Could not load file or assembly CrystalDecisions.VSDesigner Version=10.5.3700.0
i do some solutions
1 - i open web.config file and delete the row of CrystalDecisions.VSDesigner - my app run fine but reports not working
when i add this row again my app not running
please . i do alot of research about this problems but no HOPE
thanks for ur time
In Vs 2003 the Runtime of Crystal reports was bundled in the program setup when you create the installer and installed, but with vs 2005 and later you have to install it.
I think here you can find the msi
http://scn.sap.com/docs/DOC-27917
The dll version of the Runtime that ships with vs is different from the various version of Crystal reports, so you have to install the right one
There's a good chance that installing the new version of Crystal Reports wiped your previous assemblies out of the GAC and replaced them with a newer version. From SAP:
As each version of Crystal Reports has its' own specific runtime which
must be correctly deployed, it is critical that the deployed runtime
be in agreement with the Crystal Reports assemblies for Visual Studio
.NET referenced in your project.
Your error looks like it is trying to find a DLL from Crystal Reports 10.5 and as the above link suggests, it does not like having differing versions of crystal reports running side by side.

How to create a .NET setup project with crystal report prerequisite?

I have worked on a desktop application in .net and it uses crystal report for generating report in pdf/ms word. However, I am now trying to deploying this app with visual studio setup project. Now, finding a way to bundle the crystal report assemblies in some way so that they can also install automatically on a pc where crystal report isn't installed. How can I achieve this please?
Regards
There is a folder called Microsoft Visual Studio 9.0\Crystal Reports\CRRedist\IA64 in your Programs folder. There you will find a redistributable package. Just add this file to your setup project - user defined actions - and install it.
edit: As you mentioned setupProject CustomActions only allows exe/dll files
I found another solution. Hope this ones satisfies your needs.
Add a mergeModul to your setupProject (right-click solution explorer on setupProject, add mergeModul). A folder called C:\Program Files (x86)\Common Files\Merge Modules should automatically show up. There you may find a file called CrystallReportsRedistxxx.msm. Add this to your project and it should install too.
To find the right MergeModul for your version have a look at: BusinessObjects_CrystallReports
Adding MergeModul to setupProjects look at: SetupMergeModul
What kind of CrystalReport package to use, look at: MS CrystalReport I and MS CrystalReport II
hth

Categories