注册mshtml

windows下microsoft html object library 有时在系统升级后会出现问题,造成不能被正确引用。解决方法如下:
@ECHO OFF

if exist %windir%SysWOW64 goto X64

:X86
ECHO 32位系统注册 MSCOMCTL.OCX ...
copy MSCOMCTL.OCX %windir%system32
%windir%system32regsvr32 /u mscomctl.ocx /s
%windir%system32regsvr32 mscomctl.ocx /s
%windir%regtlib msdatsrc.tlb
@pause
exit

:X64
ECHO 64位系统注册 MSCOMCTL.OCX ...
copy MSCOMCTL.OCX %windir%sysWOW64
%windir%sysWOW64regsvr32 /u mscomctl.ocx /s
%windir%sysWOW64regsvr32 mscomctl.ocx /s
%windir%regtlib msdatsrc.tlb
@pause

Lokie博客
请先登录后发表评论
  • 最新评论
  • 总共0条评论
  • 本博客使用免费开源的 laravel-bjyblog v5.5.1.1 搭建 © 2014-2018 lokie.wang 版权所有 ICP证:沪ICP备18016993号
  • 联系邮箱:kitche1985@hotmail.com