CrazyGenius Posted September 2, 2008 Posted September 2, 2008 I know there are ways to get programs to update in Windows Steadystate but i cant get NOD32 to update it doesn't seem to have a command line to run a update. I want to be able to write a scipt to run the update without having to log on as administrator and turning protection off every time it needs updating. Does anyone know of any code that will help my problem
CrazyGenius Posted September 9, 2008 Author Posted September 9, 2008 I know there are ways to get programs to update in Windows Steadystate but i cant get NOD32 to update it doesn't seem to have a command line to run a update. I want to be able to write a scipt to run the update without having to log on as administrator and turning protection off every time it needs updating. Does anyone know of any code that will help my problem i have researched some ways of doing this. this was the best option but it doesn't work how expandcollapse popupIn the SoftwareUpdates.XML file add this before the tag <SOFTWARE id="ESET" name="Eset NOD32 Antivirus" detectionPath="SOFTWARE\ESET\ESET Security\CurrentVersion\Info" detectionName="InstallDir" append="ecmd.exe" script="SCTNOD32Update.vbs" category="Anti-Virus" /> The vbscript that goes into windows steadystate Script folder: Option Explicit ' ~~~ ' ~~~ Turn on error handling ' ~~~ On Error Resume Next ' ~~~ ' ~~~ Declare global variables ' ~~~ Dim sEsetPath, oShell, strComputer, oWMIService, ColProcesses ' ~~~ Create objects Set oShell = CreateObject("WScript.Shell") ' ~~~ Set application path sEsetPath = oshell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\ESET\ESET Security\CurrentVersion\Info\InstallDir") '~~~ Download Virus Signature call oShell.Run(chr(34) & sEsetPath & "\ecmd.exe" & chr(34) & " /update", 0, True) ' ~~~ Wait 5 minutes WScript.Sleep (300000)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now