OCX组件注册

cd /d %~dp0
if "%PROCESSOR_IDENTIFIER:~0,3%"=="x86" (goto system32) else goto system64

:system32
copy DHDeviceConfig.ocx %windir%\system32\
copy DvrInterVideo.ocx %windir%\system32\
copy VideoWindow.ocx %windir%\system32\
copy webrec.ocx  %windir%\system32\
copy Config.ini %windir%\system32\
copy dhdvr.dll  %windir%\system32\
copy dhplay.dll  %windir%\system32\
copy DllDeinterlace.dll  %windir%\system32\
copy dllh264.dll  %windir%\system32\
copy webjsonsdk.dll  %windir%\system32\
copy webrec.inf  %windir%\system32\
copy dhnetsdk.dll  %windir%\system32\

 

regsvr32 %windir%\system32\DHDeviceConfig.ocx
regsvr32 %windir%\system32\DvrInterVideo.ocx
regsvr32 %windir%\system32\VideoWindow.ocx
regsvr32 %windir%\system32\webrec.ocx

goto q

:system64

copy DHDeviceConfig.ocx %windir%\SysWOW64\
copy DvrInterVideo.ocx %windir%\SysWOW64\
copy VideoWindow.ocx %windir%\SysWOW64\
copy webrec.ocx  %windir%\SysWOW64\
copy Config.ini %windir%\SysWOW64\
copy dhdvr.dll  %windir%\SysWOW64\
copy dhplay.dll %windir%\SysWOW64\
copy DllDeinterlace.dll  %windir%\SysWOW64\
copy dllh264.dll  %windir%\SysWOW64\
copy webjsonsdk.dll  %windir%\SysWOW64\
copy webrec.inf  %windir%\SysWOW64\
copy dhnetsdk.dll  %windir%\SysWOW64\


regsvr32 %windir%\SysWOW64\DHDeviceConfig.ocx
regsvr32 %windir%\SysWOW64\DvrInterVideo.ocx
regsvr32 %windir%\SysWOW64\VideoWindow.ocx
regsvr32 %windir%\SysWOW64\webrec.ocx


:q
echo off
set IsPause=Yes
IF ByCall==%1 set IsPause=No
IF %IsPause%==Yes (Pause)
echo on

posted @ 2013-09-11 14:27  Bluze  阅读(420)  评论(0编辑  收藏  举报