Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello
I am making desktop application in VB.net with crystal report in VS10.
My application works fine in my system but if I run it to another PC which do not have crystal reports installed in it, it gives me error:
An error has occurred while attempting to load the Crystal Reports runtime desktop application Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information


What else should i need to do, because it is not possible to give
CRRuntime_32bit_13_0_12.msi
within my set up and ask user to install it

What I have tried:

I have copied all required dll to user PC at my application installed location.
Posted
Updated 12-Jun-18 2:08am
v2
Comments
Nitin Surya 12-Jun-18 6:55am    
i am using Inno setup to create exe bundle

1 solution

You have to include the MSI with your setup and install it together with your application.

Untested InnoSetup script portion (see also Inno Setup Knowledge Base[^] ):
[Files]
Source: "[<Path>\]CRRedist<version>.msi"; DestDir: "{tmp}"; Flags: deleteafterinstall

[Run]
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\CRRedist<version>.msi""";
Description: "Crystal Reports"; Flags: waituntilterminated

You may also let the shell execute the MSI file:
[Run]
Filename: "{tmp}\CRRedist<version>.msi"; Description: "Crystal Reports"; Verb: "open"; Flags: shellexec waituntilterminated

See also the [Run] & [UninstallRun] sections[^] for the various options and flags like showing a status message.

To handle errors during installation use the Pascal Scripting: ShellExec[^] function.
 
Share this answer
 
Comments
Nitin Surya 12-Jun-18 8:19am    
i want it to get execute without its gui.. I mean the msi files installation GUI should not appear while installing main setup. Is it possible?
Jochen Arndt 12-Jun-18 8:36am    
See the "/q" option at Msiexec Command Line Options. It can be used to show no or a reduced UI.

But when doing so you should add a "StatusMsg" to the InnoSetup RUN section so that the users knows that something is happening and he has to be patient.
Nitin Surya 12-Jun-18 9:52am    
Is there any other way than installing msi for crystal report, like copy and register some dll or something other than this?
Jochen Arndt 12-Jun-18 10:23am    
If there is (but I don't think so), why would you do so instead of using the provided installation package?

That will do all the required tasks:
Checking if already installed, copying to the correct locations, and registering.
Nitin Surya 12-Jun-18 10:58am    
"/q" is not working it should be installed in background.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900