|
@@ -1,8 +1,17 @@ |
|
|
if exist %WinDir%\SysWOW64\mshta.exe ( |
|
|
if exist %WinDir%\SysWOW64\mshta.exe ( |
|
|
set MSHTA=%WinDir%\SysWOW64\mshta.exe |
|
|
set MSHTA=%WinDir%\SysWOW64\mshta.exe |
|
|
|
|
|
set IE="%ProgramFiles(x86)%\Internet Explorer\iexplore.exe" |
|
|
|
|
|
set CLSROOT=Wow6432Node\CLSID |
|
|
) else ( |
|
|
) else ( |
|
|
set MSHTA=mshta |
|
|
set MSHTA=mshta |
|
|
|
|
|
set IE="%ProgramFiles%\Internet Explorer\iexplore.exe" |
|
|
|
|
|
set CLSROOT=CLSID |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
REM register the protocol |
|
|
reg add HKCR\hik /v "URL Protocol" /f |
|
|
reg add HKCR\hik /v "URL Protocol" /f |
|
|
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 |
|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
REM force IE in case that 360se has taken over the control |
|
|
|
|
|
REM HKCR is the merged view of HKLM\Software\Classes and HKCU\Software\Classes |
|
|
|
|
|
reg add HKCU\Software\Classes\%CLSROOT%\{0002DF01-0000-0000-C000-000000000046}\LocalServer32 /d %IE% /f |