Register OCX in 64 and 32 bit

Copy and register ocx using cmd (DOS batch) in Windows 32bit and 64bit.


Public

Tested

Not My Work

:: Register OCX in 32bit
if not exist %Windir%\system32\MSCOMCTL.OCX copy /B MSCOMCT2.OCX /B %Windir%\system32\MSCOMCTL.OCX /Y
Rem This will work on all 32bit systems
regsvr32 %Windir%\system32\MSCOMCT2.OCX

:: Register OCX in 64bit
if not exist %Windir%\SysWOW64\MSCOMCTL.OCX copy /B MSCOMCT2.OCX /B %Windir%\SysWOW64\MSCOMCTL.OCX /Y
Rem This will work on all 32bit systems
regsvr32 %Windir%\SysWOW64\MSCOMCT2.OCX

Views 293 Downloads 95

WinRegistry Sessions
ANmarAmdeen
728
Attachments
Revisions

v1.0