NDog37 Posted January 26, 2009 Share Posted January 26, 2009 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 runningSecond Use the below script to install onto a PCNB depending what the name of the exe is change the $exe = "eav_nt32_enu.msi" scetionI 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 bucksThis 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 runningAutoItWinSetTitle($g_szVersion)HotKeySet("{ESC}", "MyExit")Func MyExit() ExitEndFunc#requireadmin#include <GuiConstantsEx.au3>#Include <GuiToolBar.au3>$exe = "eav_nt32_enu.msi"$titlepre = "nul"$title = "ESET NOD32 Antivirus Setup"$processname = $exe;#csIf Not ProcessExists($processname) Then ShellExecute(@ScriptDir & "\" & $exe)EndIfLocal $Done = FalseWhile 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 EndIfWEndWhile 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)WEndLocal $Done = FalseWhile 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}") EndIfWEndSleep(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 More sharing options...
cmonkedo Posted January 29, 2009 Share Posted January 29, 2009 This is awsome I am a huge fan nod32. Do you know of anyway to run gui nod32 3.x from flash drive? Any help would be appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now