@echo off

%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit cd /d "%~dp0"

setlocal enabledelayedexpansion for /f "tokens=1,2 delims==" %%a in ('WMIC LOGICALDISK WHERE "VolumeName='EasyU'" GET DeviceID /VALUE ^| find /I "DeviceID"') do ( for /f "tokens=1,2 delims=:" %%a in ("%%b") do ( set DriveU=%%a ) )

echo "欢迎使用此脚本,下面将自动安装作业帮直播间软件"

echo "安装PDF" start "" /wait "%DriveU%:\wds\pdf_11" /sAll echo "安装钉钉" start "" "%DriveU%:\wds\DingTalk_v5.0.6.1.exe" /S echo "安装WRAR" start "" "%DriveU%:\wds\winrar-x64-570scp.exe" /s echo "安装输入法" start "" "%DriveU%:\wds\shouxin_2.7.exe" /S echo "安装网易云音乐" start "" "%DriveU%:\wds\cloudmusicsetup_2.5.0.196623.exe" /S echo "安装手写板驱动" start "" "%DriveU%:\wds\ZybDriverWacom.exe" /S echo "安装谷歌浏览器" start "" "%DriveU%:\wds\Chrome.exe" /S echo "安装360安全卫士" start "" /wait "%DriveU%:\wds\setup_12.0.0.2002v" /s echo "安装作业帮教师工具" start "" "%DriveU%:\wds\zteachertool_20190816_1653_VC104.exe" /silent echo "安装浣熊英语主讲端" start "" "%DriveU%:\wds\ERETeacher_2.0.6.95_34_Setup.exe" /silent echo "安装作业帮直播课主讲端" start "" "%DriveU%:\wds\ZYBLiveStream_206_4.2.0" /silent echo "安装Microsoft Office 2013X64" start "" /wait "%DriveU%:\wds\office2013x64\setup.exe"

echo "关闭windows更新" start "" /wait sc config wuauserv start= disabled start "" net stop wuauserv

:wait choice /C YN /T 1 /D Y > nul tasklist | find "dingding_4.2.exe" > nul && goto :wait tasklist | find "Chrome.exe" > nul && goto :wait tasklist | find "ZYBLiveStream_142_4.0.0.exe" > nul && goto :wait tasklist | find "ERETeacher_2.0.6.95_34_Setup.exe" > nul && goto :wait