Jump to content

NOD32 3.0.669.0 Installer + Offline Cache Updater


NDog37

Recommended Posts

Hi this method allows you to install NOD32 Antivirus then update it using an offline cache. This will work on trial versions or retail versions(home,business), all have been tested on XP English, XP Korean and XP virtual machines.

-If you want to use an offline cache firstly use NOD32 Update Viewer to download your updates. If you are going to use business, home or trial download the appropriate updates.

-Create a folder called upd and copy the updates there

-the nod32 install exe and upd folder must be in the same folder as this script is running

Second Use the below script to install onto a PC

NB depending what the name of the exe is change the $exe = "eav_nt32_enu.msi" scetion

I also have a script for ESS but it is pretty simple to modify this script, just change the title and tweak it a bit. I don't use ESS cause the firewall is not that flash and not worth the extra $30 bucks

This is quite useful if you are a reseller of NOD32, its a great antivirus and I recommend it to all my customers!

Opt("TrayIconDebug", 1)
opt("WinTitleMatchMode",4)
$g_szVersion = "NDog_WPIW"
If WinExists($g_szVersion) Then Exit; It's already running
AutoItWinSetTitle($g_szVersion)
HotKeySet("{ESC}", "MyExit")
Func MyExit()
Exit
EndFunc

#requireadmin
#include <GuiConstantsEx.au3>
#Include <GuiToolBar.au3>

$exe = "eav_nt32_enu.msi"
$titlepre = "nul"
$title = "ESET NOD32 Antivirus Setup"
$processname = $exe

;#cs

If Not ProcessExists($processname) Then
ShellExecute(@ScriptDir & "\" & $exe)
EndIf

Local $Done = False
While Not $Done

If WinExists($titlepre) Then
WinActivate($titlepre)
WinWaitActive($titlepre, "", 5)

ElseIf WinExists($title, "Welcome to ESET") Then
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "License Agreement") Then
ControlSend($title, "", "Button4","!a")
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "Installation mode selection") Then
ControlSend($title, "", "Button8","!s")
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "Select Installation Folder") Then
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "Enter your Username and Password") Then
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "Proxy server") Then
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "Program components:") Then
ControlClick($title, "Program components:", "Button5")
; program components may be buggy
While WinExists($title, "Program components:")
If WinExists($title, "Updates can be performed automatically") Then
ControlClick($title, "Updates can be performed automatically", "Button8")
ControlClick($title, "Updates can be performed automatically", "Button12")
ControlSend($title, "Updates can be performed automatically", "Button1","{SPACE}")
; end of program components
ControlSend($title, "Program components:", "Button1","!n")
EndIf
WEnd
ElseIf WinExists($title, "Password protect settings") Then
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "ThreatSense.Net Early Warning System") Then
ControlSend($title, "", "Button4","{SPACE}")
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "Detection of potentially unwanted applications") Then
ControlSend($title, "", "Button6","!d")
ControlSend($title, "", "Button1","!n")
ElseIf WinExists($title, "Ready to Install") Then
ControlSend($title, "", "Button1","!i")
ElseIf WinExists($title, "Click the Finish button to exit the Setup Wizard.") Then
ControlSend($title, "", "Button1","!f")

$Done = True
Else
Sleep(500)
ContinueLoop
EndIf

WEnd

While ProcessExists($processname)
WEnd

#ce

$nodupdpath1 = "HKEY_LOCAL_MACHINE\SOFTWARE\ESET\ESET Security\CurrentVersion\Plugins\01000400\Profiles\@My profile"
RegWrite($nodupdpath1,"UpdateType", "REG_DWORD", "24")
RegWrite($nodupdpath1,"Restart", "REG_DWORD", "100")
RegWrite($nodupdpath1,"SelectedServer", "REG_SZ", "" & @ScriptDir & "\upd" & "")

$nodupdpath2 = "HKEY_LOCAL_MACHINE\SOFTWARE\ESET\ESET Security\CurrentVersion\Plugins\01000400\UI_Settings\Servers"
RegWrite($nodupdpath2,"Server_0", "REG_SZ", "" & @ScriptDir & "\upd" & "")

While Not IsDeclared ("BtnNum")
$hToolBar = WinGetHandle("[CLASS:Shell_TrayWnd]", "")
$hSysTray = ControlGetHandle($hToolBar, "", "ToolbarWindow321")
$BtnCnt = _GUICtrlToolbar_ButtonCount($hSysTray)
$BtnTxt = "ESET NOD32 Antivirus"

;Search for the right icon on the tray
$i = 0
While $i < $BtnCnt
;MsgBox(2,"",StringLeft(_GUICtrlToolbar_GetButtonText($hSysTray, $i),20))
If StringLeft(_GUICtrlToolbar_GetButtonText($hSysTray, $i),20) = $BtnTxt Then
$BtnNum = $i
ExitLoop
EndIf
$i += 1
WEnd
Sleep(500)
WEnd

Local $Done = False
While Not $Done
If WinActive("ESET NOD32 Antivirus","Username and Password setup...") Then
ExitLoop
Else
_GUICtrlToolbar_ClickButton($hSysTray, $BtnNum, "left")
WinWait("[CLASS:#32768]", "", 5)
SendKeepActive("[LAST]")
ControlSend("[LAST]", "", "", "{UP 6}{ENTER}")
EndIf
WEnd

Sleep(1000)
ControlSend("ESET NOD32 Antivirus","Username and Password setup...","", "!{F4}")

$nodupdpath1 = "HKEY_LOCAL_MACHINE\SOFTWARE\ESET\ESET Security\CurrentVersion\Plugins\01000400\Profiles\@My profile"
RegWrite($nodupdpath1,"UpdateType", "REG_DWORD", "24")
RegWrite($nodupdpath1,"Restart", "REG_DWORD", "100")
RegWrite($nodupdpath1,"SelectedServer", "REG_SZ", "AUTOSELECT")

$nodupdpath2 = "HKEY_LOCAL_MACHINE\SOFTWARE\ESET\ESET Security\CurrentVersion\Plugins\01000400\UI_Settings\Servers"
RegDelete($nodupdpath2,"Server_0")

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...