Page 1 of 1

HOW TO REGISTER .OCX FILE

Posted: Thu Jul 16, 2020 7:25 am
by wawa1208
Hi,

How to register .ocx into the syswow64 or System32 in the "System-Commands"?
which the .ocx file will located at C:\Windows\SysWOW64\ or C:\Windows\System32.

Tried the following but got error message,
Command: <SystemDir>\cmd.exe
Parameters: /C IF EXIST "%WINDIR%\SysWOW64\Regsvr32.exe" ( "%WINDIR%\SysWOW64\Regsvr32.exe" "<InstallDir>\FILE.ocx") ELSE ( "%WINDIR%\SYSTEM32\Regsvr32.exe" "<InstallDir>\FILE.ocx")
Timing: After Installation


Thanks.

Re: HOW TO REGISTER .OCX FILE

Posted: Fri Jul 17, 2020 4:37 am
by Leo
Hi,

Add your OCX file into <SystemDir> folder on the Files and Folders page.
Then go to Register / Others and specify this file as ActiveX/DLL.

Re: HOW TO REGISTER .OCX FILE

Posted: Fri Jul 17, 2020 11:08 am
by wawa1208
Hi,

Please refer to my attached jpg, do i make any mistake? because it still not register into the C:\Windows\SysWOW64\ or C:\Windows\System32. Please advise.

Thanks.

Re: HOW TO REGISTER .OCX FILE

Posted: Sat Jul 18, 2020 6:03 am
by Leo
As I wrote, OCX files must be in the <SystemDir> folder. Remove these files from <InstallDir>, then add them into <SystemDir>
Also, do not use Commands.

Re: HOW TO REGISTER .OCX FILE

Posted: Mon Jul 20, 2020 3:31 am
by wawa1208
Thanks. the problem is solved with your guidance.