Install OCX(s) using 4GL

cesaroll

Member
Hi everyone,

Is there a way to install OCX(s) in a PC using 4GL?

I'm using WebClient, the .r files are installed in the clients PC's automatically, but my problem is that I'm using an OCX component (TreeView4GL).

What I would like to do, is to also install the .OCX component automatically.

I tried to install it using a .bat file executed with OS-COMMAND, but it only works when the .OCX file is installed the first time, I don't know a way to ask if the .ocx is already installed in the PC.


Thanks in advance!!
 

jeffcoop_69

New Member
The way I handle this is like so: since I'm registering the ocx I know the location of the file or where the file should be - just do a search for the .ocx file and if you don't find it copy and register it with the silent option but if you do find it then skip the copy and register.
 
In your WebClient Application Assembler go to the "Options" tab.

Click on the "System Tasks Definition..." button.

Choose the "Files" folder on the window that appears.

You can then add ocx's dll's and vbx's to be installed on the client PC as part of the system implementation.

All ocx's and dll's should be registered. vbx's should not.

Alternatively you can edit your wcp file using wordpad. Below is an extract from the code in our wcp file.
Code:
[font=Courier New][size=2][SystemFilesNT]
FileCount=19
File1=K:\WebClient\HSMS\network\3rd Party\FHPopup.ocx
File1.Flags=SHAREDFILE | REGISTERED
File2=K:\WebClient\HSMS\network\3rd Party\Flpvbx20.vbx
File2.Flags=SHAREDFILE
File3=K:\WebClient\HSMS\network\3rd Party\Psole2.vbx
File3.Flags=SHAREDFILE
File4=K:\WebClient\HSMS\network\3rd Party\Psspin.vbx
File4.Flags=SHAREDFILE
File5=K:\WebClient\HSMS\network\3rd Party\Pstimer.vbx
File5.Flags=SHAREDFILE
File6=K:\WebClient\HSMS\network\3rd Party\Comctl32.ocx
File6.Flags=SHAREDFILE | REGISTERED
File7=K:\WebClient\HSMS\network\3rd Party\Flp32x20.ocx
File7.Flags=SHAREDFILE | REGISTERED
File8=K:\WebClient\HSMS\network\3rd Party\Hhctrl.ocx
File8.Flags=SHAREDFILE | REGISTERED
File9=K:\WebClient\HSMS\network\3rd Party\Itircl.dll
File9.Flags=SHAREDFILE | REGISTERED
File10=K:\WebClient\HSMS\network\3rd Party\Itss.dll
File10.Flags=SHAREDFILE | REGISTERED
File11=K:\WebClient\HSMS\network\3rd Party\Pscombo.vbx
File11.Flags=SHAREDFILE
File12=K:\WebClient\HSMS\network\3rd Party\Ctl3d.dll
File12.Flags=SHAREDFILE | REGISTERED
File13=K:\WebClient\HSMS\network\3rd Party\Qapuidn.dll
File13.Flags=SHAREDFILE | REGISTERED
File14=K:\WebClient\HSMS\network\3rd Party\Qapuien.dll
File14.Flags=SHAREDFILE | REGISTERED
File15=K:\WebClient\HSMS\network\3rd Party\mfcoleui.dll
File15.Flags=SHAREDFILE | REGISTERED
File16=K:\WebClient\HSMS\network\3rd Party\csspin32.ocx
File16.Flags=SHAREDFILE | REGISTERED
File17=K:\WebClient\HSMS\network\3rd Party\pstimer.ocx
File17.Flags=SHAREDFILE | REGISTERED
File18=K:\WebClient\HSMS\network\3rd Party\fm20.dll
File18.Flags=SHAREDFILE | REGISTERED
File19=K:\WebClient\HSMS\network\3rd Party\msgblst32.ocx
File19.Flags=SHAREDFILE | REGISTERED
 
[ApplicationProgramGroup]
Name=c:\winnt\profiles\All Users\DeskTop
[/size][/font]
 
Top