25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
776 B

  1. if exist %WinDir%\SysWOW64\mshta.exe (
  2. set MSHTA=%WinDir%\SysWOW64\mshta.exe
  3. set IE="%ProgramFiles(x86)%\Internet Explorer\iexplore.exe"
  4. set CLSROOT=Wow6432Node\CLSID
  5. ) else (
  6. set MSHTA=mshta
  7. set IE="%ProgramFiles%\Internet Explorer\iexplore.exe"
  8. set CLSROOT=CLSID
  9. )
  10. REM register the protocol
  11. reg add HKCR\hik /v "URL Protocol" /f
  12. reg add HKCR\hik\shell\open\command /d "%MSHTA% \"javascript:open('%1'.replace('hik:',''),'显示窗口','height=600,width=650,location=no,menubar=no,resizable=yes');close()\"" /f
  13. REM force IE in case that 360se has taken over the control
  14. REM HKCR is the merged view of HKLM\Software\Classes and HKCU\Software\Classes
  15. reg add HKCU\Software\Classes\%CLSROOT%\{0002DF01-0000-0000-C000-000000000046}\LocalServer32 /d \"%IE%\" /f