master
iotcat 4 years ago
parent 79d14991dc
commit 6d7cffa38a
  1. 1
      .gitignore
  2. 0
      dist/check.vbs
  3. 26
      dist/install.bat
  4. 0
      dist/startup.vbs
  5. 17
      install.bat
  6. 2
      src/reg.bat

1
.gitignore vendored

@ -0,0 +1 @@
node_modules/

26
dist/install.bat vendored

@ -0,0 +1,26 @@
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
@echo off
setlocal enabledelayedexpansion
cd /d "%~dp0"
set ushio=C:\Ushio
set ushio_bck=C:\Windows\Ushio
:md_ushio
if '%~dp0'=='%ushio%' goto :md_ushio_bck
if not exist %ushio% md %ushio%
xcopy /Y /Q /E ..\. %ushio%
if '%~dp0'=='%ushio_bck%' goto :reg
:md_ushio_bck
if not exist %ushio_bck% md %ushio_bck%
xcopy /Y /Q /E ..\. %ushio_bck%
goto :reg
:reg
call %ushio%\src\reg.bat

@ -0,0 +1,17 @@
@echo off
set ushio=C:\Ushio
if not exist %ushio% md %ushio%
xcopy /Y /Q /E . %ushio%
call %ushio%\dist\install.bat
cls
echo.
echo. Ushio install finished!!
echo.
echo. IoTcat(http://iotcat.me)
echo.
echo.
pause

@ -0,0 +1,2 @@
@echo off
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /f /v ushio /t REG_SZ /d "%ushio%\dist\startup.vbs"
Loading…
Cancel
Save