Installing xCodeJock enabled Applications

This forum is for support of XCodeJock
Post Reply
Message
Author
Retlaw
Posts: 3
Joined: Thu Feb 11, 2010 8:56 am
Location: Cape Town, South Africa
Contact:

Installing xCodeJock enabled Applications

#1 Post by Retlaw »

Do I have to install CodeJock on each clients PC when I use xCodJock?

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Installing xCodeJock enabled Applications

#2 Post by rdonnay »

No. You simply need to distribute the OCX for each control and then register each OCX with regsvr32.exe. You can have your install program register the OCX's or you can have your Xbase++ program register them like this:

Code: Select all

   /// REGISTER ANY OCX
   cRegSvr := 'regsvr32.exe'
   aOcx := {{'rmchart.ocx','\CLSID\{4D814D0F-7D71-4E7E-B51E-2885AD0ED9D7}'},;
            {'CodeJock.Calendar.v13.0.0.ocx','\CLSID\{7B7990A4-9419-4F8C-A459-3E4644BCC35F}'},;
            {'CodeJock.SkinFramework.v13.0.0.ocx','\CLSID\{16378D39-12CF-4C7D-8769-DFAAF02FD1F5}'}}
   FOR i := 1 TO Len(aOcx)
      cRegQuery := DC_RegQuery(HKEY_CLASSES_ROOT,aOcx[i,OCX_CLSID],'')
      IF Valtype(cRegQuery) # 'C' .OR. Empty(cRegQuery)
        RunShell(aOcx[i,OCX_NAME]+' /s',cRegSvr)

        cRegQuery := DC_RegQuery(HKEY_CLASSES_ROOT,aOcx[i,OCX_CLSID],'')
        IF Valtype(cRegQuery) # 'C' .OR. Empty(cRegQuery)
          DC_WinAlert('Could not register '+aOcx[i,OCX_NAME])
        ENDIF
      ENDIF
   NEXT
The eXpress train is coming - and it has more cars.

Post Reply