Автор: RwR
Дата сообщения: 27.06.2007 13:34
[more=Батник]reg add "hklm\system\currentcontrolset\services\ekrn" /v start /t reg_dword /d 4 /f
reg add "hklm\system\controlset001\services\ekrn" /v start /t reg_dword /d 4 /f
reg add "hklm\system\controlset002\services\ekrn" /v start /t reg_dword /d 4 /f
reg add "hklm\system\controlset003\services\ekrn" /v start /t reg_dword /d 4 /f
taskkill /im ekrn.exe /f
taskkill /im egui.exe /f
ess_rus.exe
reg add "hklm\system\currentcontrolset\services\ekrn" /v start /t reg_dword /d 2 /f
reg add "hklm\system\controlset001\services\ekrn" /v start /t reg_dword /d 2 /f
reg add "hklm\system\controlset002\services\ekrn" /v start /t reg_dword /d 2 /f
reg add "hklm\system\controlset003\services\ekrn" /v start /t reg_dword /d 2 /f
net start "Eset Service"
@echo off
chcp 1251>nul
for /f "tokens=2*" %%a in ('REG QUERY "HKLM\SOFTWARE\eset\eset security\CurrentVersion\Info" /v installdir ^| find /i "installdir"') do set "instdir=%%b"
cd /d "%instdir%"
set "instdir="
start egui.exe
pause[/more]
[more=Скрипт AutoIt]RegWrite ( "HKEY_LOCAL_MACHINE\system\currentcontrolset\services\ekrn", "start", "REG_DWORD", "4" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset001\services\ekrn", "start", "REG_DWORD", "4" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset002\services\ekrn", "start", "REG_DWORD", "4" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset003\services\ekrn", "start", "REG_DWORD", "4" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\currentcontrolset\services\ekrn", "description", "REG_SZ", "Eset_Service" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset001\services\ekrn", "description", "REG_SZ", "Eset_Service" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset002\services\ekrn", "description", "REG_SZ", "Eset_Service" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset003\services\ekrn", "description", "REG_SZ", "Eset_Service" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\currentcontrolset\services\ekrn", "DisplayName", "REG_SZ", "Eset_Service" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset001\services\ekrn", "DisplayName", "REG_SZ", "Eset_Service" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset002\services\ekrn", "DisplayName", "REG_SZ", "Eset_Service" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset003\services\ekrn", "DisplayName", "REG_SZ", "Eset_Service" )
Run(@SystemDir & "\taskkill.exe /F /IM egui.exe", @SystemDir, @SW_HIDE)
Run(@SystemDir & "\taskkill.exe /F /IM ekrn.exe", @SystemDir, @SW_HIDE)
ProcessClose ( "egui.exe" )
ProcessClose ( "ekrn.exe" )
WinSetState( "Лицензионное соглашение", "", @SW_HIDE )
Run ( "ESS_RUS.exe", "" )
WinSetState( "Лицензионное соглашение", "", @SW_HIDE )
WinWait ( "Лицензионное соглашение", "" )
WinSetState( "Лицензионное соглашение", "", @SW_HIDE )
ControlClick ( "Лицензионное соглашение", "", 32771 )
ControlClick ( "Лицензионное соглашение", "", 32775 )
WinSetState( "Русификация", "", @SW_HIDE)
ControlClick ( "Русификация", "", 32791 )
WinSetState( "Русификация", "", @SW_HIDE )
ControlClick ( "Русификация", "", 32794 )
WinSetState( "Русификация", "", @SW_HIDE )
Sleep (20000)
WinSetState( "Русификация", "", @SW_HIDE )
ControlClick ( "Русификация", "", 32800 )
WinWaitClose ( "Русификация", "" )
MsgBox(64, "Поздравляем!", "Установка русификатора Eset Smart Security Beta 1a успешно завершена!" )
FileDelete ( "ESS_RUS.exe" )
FileDelete ( "ESS_RUS_SCRIPT.exe" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\currentcontrolset\services\ekrn", "start", "REG_DWORD", "2" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset001\services\ekrn", "start", "REG_DWORD", "2" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset002\services\ekrn", "start", "REG_DWORD", "2" )
RegWrite ( "HKEY_LOCAL_MACHINE\system\controlset003\services\ekrn", "start", "REG_DWORD", "2" )
#include <Process.au3>
$rc = _RunDos ( "net start Eset_Service" )
Run ( "egui.exe" )
[/more]