Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Checking SAP Business One installation programmatically

I want to check if SAP Business One is installed using a program. I have a WinForm application that connects to SAP Business One SDK.

Is there a way to check?


1 Answer
SAP Expert

You can check SAP Business One installation using below code:

Public Function isSapBusinesOneClientInstalled() As Boolean
   Try
      SAP Business One Application
      Dim type As Type = Type.GetTypeFromCLSID(New Guid("632F4591-AA62-4219-8FB6-22BCF5F60088"))
      Dim obj As Object = Activator.CreateInstance(type)
      Marshal.ReleaseComObject(obj)
      Return True
         Catch ex As COMException
      Return False
   End Try
End Function

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.