Using this method you can register DLL and OCX file using Command prompt or by Context menu when you right click on the file. The Command prompt method works on all Windows OS but the context men method works on windows 7 and above version of windows 7 such as windows 8 , 8.1.
For an Example if you installed Windows OS in C:\ drive then follow the steps.
1.If you are using 32 bit Windows OS then past your DLL or OCX file in
C:\Windows\System32
2.If you are using 64 bit Windows OS then past your DLL or OCX file in
C:\Windows\SysWOW64
1.Register from Command prompt
Open Administrator command promptfor 32 bit os
using admin cmd Ex: regsvr32 C:\Windows\System32\filename.dll
for 64 bit os
using admin cmd Ex: regsvr32 C:\Windows\SysWOW64\filename.dll
2.Register from Context menu
Download OCXDLL.bat.zip copy and past the OCXDLL.bat in C:\ location
Download OCXDLL.reg.zip and install the registry file
1.If you are using 32 bit Windows OS then past your DLL or OCX file in
C:\Windows\System32
2.If you are using 64 bit Windows OS then past your DLL or OCX file in
C:\Windows\SysWOW64
Right click the file after that you can register or unregister OCX & DLL files form context menu.
Download COMDLG32.OCX.zip if you need.