From 51d3db623b0c90658cae124e8ec5851963bdfd07 Mon Sep 17 00:00:00 2001 From: Bing Sun Date: Tue, 9 Aug 2016 16:39:42 +0800 Subject: [PATCH] use bat to support detecting enviroment --- hik.bat | 8 ++++++++ hik.reg | Bin 704 -> 700 bytes 2 files changed, 8 insertions(+) create mode 100644 hik.bat diff --git a/hik.bat b/hik.bat new file mode 100644 index 0000000..43c8df7 --- /dev/null +++ b/hik.bat @@ -0,0 +1,8 @@ +if exist %WinDir%\SysWOW64\mshta.exe ( +set MSHTA=%WinDir%\SysWOW64\mshta.exe +) else ( +set MSHTA=mshta +) + +reg add HKCR\hik /v "URL Protocol" /f +reg add HKCR\hik\shell\open\command /d "%MSHTA% \"javascript:window.open('%1'.replace('hik:',''),'显示窗口','height=600,width=650,location=no,menubar=no,resizable=yes');window.close()\"" /f diff --git a/hik.reg b/hik.reg index 87565cce2cb67c2048c8e783055f20ed0aa190a0..90e8f2bcaebc634cd011465a73a82aca3a16eed4 100644 GIT binary patch delta 7 OcmX@Wx`%bc9wq<`uLAV| delta 12 TcmdnPdVqDq9wruE1}+8w8_WX`