cancel
Showing results for 
Search instead for 
Did you mean: 

How to check runtime CR 13 with SP 25 installed from an App and then launch silent installer

gabrielsantana79
Discoverer
0 Kudos

Hi everybody

My App is a Winform coded with VB 2019 and framework 2.0 with CR 13 SP25.

When my App starts, it  needs to check if runtimes 32 and 64 bits are installed, and then launch Installer in order to install them.

First, in order to check, i've used this code: 

System.Reflection.Assembly.Load("CrystalDecisions.CrystalReports.Engine, Version=13.0.3500.0, Culture=neutral,PublicKeyToken=692fbea5521e1304")

If runtime is not installed, then this line thow an exception that I catch.

It works fine, but i can't detect if runtime installed is 32 bits o 64 bits. I need detect it, so then I launch de right installer. how can i do that?  My App works in 32 bits and 64 bits, depends on machine.

Second, how can I launch runtime installer and make an silent instalation without wizard dialog (no UI). Is is possible? can Runtime installer accept comand line and parameters?

I appreciate your help!

Thanks!

 

Accepted Solutions (0)

Answers (2)

Answers (2)

DonWilliams
Active Contributor
0 Kudos

Hello,

First thing to note is SP 25 is very old, it's up to SP 35 now.

To take advantage of the current security updates and Clients etc. you should stay up dated, SP 25 will have a lot of security issues due to the age of it.

Also note the Platform info CR for VS no longer supports 2.0 framework and nor does Microsoft. SAP follows Microsoft End of Life for it's products due to CR is Windows Based. CR for VS currently only supports 4.7 and 4.8 framework, see this platform info for more info:

Supported Platforms

Also be aware Product teams are going to stop supporting 32 bit Operating OS's, there is no need to support them any more since all mother boards support 64 bit platform and there is no reason to run applications in 32 bit mode any more. Like in the late 1990's 16 bit OS's were on their way out, same is true for 32 bit software.

See this page for more info and latest download:

https://help.sap.com/docs/SUPPORT_CONTENT/crystalreports/3354091173.html

Also, for more CR for VS questions post here:

https://support.sap.com/en/product/support-by-product/01200615320800001270.html

 

HML
Explorer
0 Kudos

You have to install the runtime according to the bitness of your process, i.e. depending on the return value of Environment.Is64BitProcess.
For the silent runtime installation refer to the documentation of msiexec.

gabrielsantana79
Discoverer
0 Kudos
ok, but how to check bitness of runtime installed? For Example, If I detect my process run on 64 Bits, then, First I have to check if runtime 64 is installed. But How i know wich runtime is installed 32 o 64 bits?
HML
Explorer
0 Kudos
Sorry, I misunderstood that. I assumed you need to determine which runtime you have to install. I would simply check the installation folder. The runtime is installed in %programfiles(x86)%\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0. Depending on the version, you will find a subfolder win32_x86 or win64_x64 there.
HML
Explorer
0 Kudos
You can also check the uninstall directory in the registry using the product ID.