on 03-29-2015 12:46 PM
Hi ,
How can I vefiy if the BI BusinessObjects Platform .Net is intalled on the system does it have uniqe Reg that registed on the system.
Thanks,
Fade Ismaeel
Hi Fade,
One way I do this is to use the Windows API to get the File versions from the GAC. This is fro CR for VS version 13 so you can test for multiple versions:
foreach (Assembly MyVerison in AppDomain.CurrentDomain.GetAssemblies())
{
if (MyVerison.FullName.Substring(0, 38) == "CrystalDecisions.CrystalReports.Engine")
{
//File: C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll
//InternalName: Crystal Reports
//OriginalFilename:
//FileVersion: 13.0.9.1312
//FileDescription: Crystal Reports
//Product: SBOP Crystal Reports
//ProductVersion: 13.0.9.1312
//Debug: False
//Patched: False
//PreRelease: False
//PrivateBuild: False
//SpecialBuild: False
//Language: English (United States)
System.Diagnostics.FileVersionInfo fileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(MyVerison.Location);
txtRuntimeVersion.Text += fileVersionInfo.FileVersion.ToString();
// check if CrsytalDecisions.Enterprise dll's can be loaded ( Anything but Cortez - managed reporting )
if (fileVersionInfo.FileVersion.Substring(0, 2) == "13")
{
btnRasOpen.Enabled = false;
}
CRVer = fileVersionInfo.FileVersion.Substring(0, 2);
return;
}
}
You can change the info for Version 14 and do the same.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fade,
I did not either, Installing the runtime to see why not.... It works for CR for VS ( version 13 ) and redist should only GAC the BI assemblies....
I have to get an Image running and find out why or why not...
Also, I don't see a common reg tree with a version of BOE installed because it's supported on multiple OS's that do not have a registry it's saved in a text file:
C:\Program Files (x86)\SAP BusinessObjects\InstallData inventory.txt has the versions
My SDK install should be done by the time I get in tomorrow so I'll try to figure out why .NET is not finding it on Windows 2008 R2 Server.
Don
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.