w10install/optional/install-snapcontrol.cmd
2022-11-25 15:29:57 +01:00

25 lines
438 B
Batchfile

@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
set T=C:\TEMP
set ZIP=..\software\snapcontrol.zip
if NOT EXIST %ZIP% (
echo ERROR: %ZIP% not found!
exit /b
)
echo ####### %0 #######
7z e -y -aoa -o%T%\snapcontrol %ZIP% 1>nul
%T%\snapcontrol\snapcontrol.exe /I
copy /Y %T%\snapcontrol\LICENSE.txt c:\snapshot
copy /Y %T%\snapcontrol\README.md c:\snapshot
rd /S /Q %T%\snapcontrol
echo.
echo ####### %0 #######
pause