-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathinstall.bat
45 lines (34 loc) · 1.27 KB
/
install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
REM * Copyright 2015 SileadTouch Corporation
REM Version 1.1
REM *****Modified by dave, 2015-4-25***************************
setlocal
@echo off
call "%~dp0uninstall.bat"
"%~dp0devcon.exe" rescan > nul || (
goto MUST_BE_ADMIN
)
copy /Y "%~dp0touch\SileadTouch.fw" %SystemRoot%\System32\Drivers
pnputil -i -a "%~dp0touch\SileadTouchDriver\SileadTouch.inf" || goto ERROR
"%~dp0devcon.exe" rescan > nul
"%~dp0devcon.exe" rescan > nul
"%~dp0devcon.exe" rescan > nul
"%~dp0devcon.exe" disable "ACPI\VEN_MSSL&DEV_1680*"
"%~dp0devcon.exe" rescan > nul
"%~dp0devcon.exe" enable "ACPI\VEN_MSSL&DEV_1680*"
"%~dp0devcon.exe" rescan > nul
rem echo.
rem echo Updating "ACPI\VEN_MSSL&DEV_1680*"
rem "%~dp0devcon.exe" update "%~dp0touch\SileadTouchDriver\SileadTouch.inf" "ACPI\VEN_MSSL&DEV_1680*" || goto ERROR
goto FINISH
:MUST_BE_ADMIN
echo Must run as Administrator
rem echo Ensure the computer is boot with "Disable Driver Signature Enforcement"
goto FINISH
:ERROR
echo -----------------------------------ERROR-----------------------------------
echo -----------------------------------ERROR-----------------------------------
:FINISH
echo --------------------- Silead TP Driver Install FINISH --------------------
pause
endlocal