topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 12:46 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: IDEA: Symantec anti-virus auto-updater  (Read 53072 times)

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
IDEA: Symantec anti-virus auto-updater
« on: May 22, 2006, 04:54 AM »
I use symantec antivirus corporate edition, and while it is (imho) a great anti-virus, its liveupdate definitions are only posted every few days. I do know that symantec posts daily updates (manually downloadable executables). What I would like is an app that will load

http://www.symantec..../pages/US-SAVCE.html

and scan for the executable link, download the file, run it, and delete the file, all automatically. Is this possible? Sounds like a perfect AHK script :) Perhaps even have an option to configure how often (since symantec posts multiple updates per day).

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #1 on: May 22, 2006, 05:24 AM »
This can be very easy to do, but i need to know if the filenames don't change.
The one you want to download mantains the file name?

(This program can be constantly checking if the page has been updated, and only download when there's a new version of the program, because there's a "release date" there ;) )

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #2 on: May 22, 2006, 05:43 AM »
The filename changed based on the date and the release number, an example filename is

20060521-018-x86.exe

Where the first portion is the release date, the second is the release number (18) and the third is the platform x86

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #3 on: May 22, 2006, 05:45 AM »
You could use Website-Watcher - there used to be a discount for memebers but I haven't checked to see if it is still valid.

It will tell you if the page is updated. It also has a scripting language built in that can run programs so should be able to detect the filename and execute it.

Useful app in its own right too ...
« Last Edit: May 22, 2006, 05:49 AM by Carol Haynes »

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #4 on: May 22, 2006, 05:48 AM »
That would work, but I want this to occur transparently (or even shoot up a prompt when the file is downloaded, asking me if I wish to update it, but having an option to silently run the update).

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #5 on: May 22, 2006, 05:58 AM »
This shouldn't be too hard to do, especially not in a decent scripting language or .NET... basically, grab the page, do a regexp search, and grab the file if the date has changed.

What's the full URL to a download file? A quick-and-dirty regexp might look something like
http://www\.symantec\.com/path/(\d{8})-(\d+)-x86\.exe
...
- carpe noctem

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #6 on: May 22, 2006, 06:06 AM »
I'm working on something now... Shouldn't take too long to finish up and GUI-ify...

*cough* Assuming it stops creating 80MB files *cough*

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #7 on: May 22, 2006, 06:07 AM »
you can also use HTTrack to download all exe, and then use task schedule to run and delete.
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #8 on: May 22, 2006, 07:34 AM »
Ok, that took longer than expected, sorry.

http://bluescreenofd...co.uk/DC/nUpdate.exe

Usage:
   Normal: Just double click...
   With logging to file: nUpdate "C:\Log.txt"

Minimise to hide in the tray... That's about it...
It doesn't delete after running, but it does overwrite the same one each time, so not much space is lost...

EDIT: I do not own Norton *... Hence I couldn't test this as much as I would have liked to...

Errors/bugs/etc, either post here or email the address in the progam...

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:
« Last Edit: May 22, 2006, 07:53 AM by PhilKC »

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #9 on: May 22, 2006, 08:39 AM »
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: text
   at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
   at System.Windows.Forms.Clipboard.SetText(String text)
   at nUpdate.MainForm.log_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ListBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
nUpdate
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///c:/nUpdate.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



This occurred on the first run after it downloaded the update and said it was executing it. I didnt see the file run, but it said it was going to execute. Also, can you make it so that it puts the URL + filename being downloaded in the log. And one final request (that I can think of right now), is there a way to make it start hidden (only in tray)? Right now, when I launch it, the program maximizes itself and starts in tray. Thanks again man! This is why I love dc.com :)

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #10 on: May 22, 2006, 09:17 AM »
nUpdate /silent
Will launch silently

nUpdate /silent "C:\log.txt"
Will launch silently, and log to C:\log.txt

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #11 on: May 22, 2006, 11:31 AM »
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: text
   at System.Windows.Forms.Clipboard.SetText(String text, TextDataFormat format)
   at System.Windows.Forms.Clipboard.SetText(String text)
   at nUpdate.MainForm.log_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ListBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
nUpdate
    Assembly Version: 1.0.3.0
    Win32 Version: 1.0.3.0
    CodeBase: file:///C:/nUpdate.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


This occurs when unchecking the silent update box right after the applications start. It also occurs when clicking around the log portion of the window at random. Also, could you add a button to run the update check manually? Thanks again for your hard work man, it is truely appreciated
« Last Edit: May 22, 2006, 12:07 PM by Josh »

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #12 on: May 22, 2006, 11:52 AM »
I wonder if the "spoiler button" feature wouldn't be a nice thing to use for long error logs like this? :)
- carpe noctem

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #13 on: May 22, 2006, 11:58 AM »
I wonder if the "spoiler button" feature wouldn't be a nice thing to use for long error logs like this?

just my 2 cents:
if you have a lot of content in a very general thread that tons of people will be reading, then encosing it in a spoiler box or putting thumbnails of big images may be warranted.
but if its a very specialized thread like this one, i don't think it's important.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #14 on: May 22, 2006, 12:05 PM »
I wonder if the "spoiler button" feature wouldn't be a nice thing to use for long error logs like this?

just my 2 cents:
if you have a lot of content in a very general thread that tons of people will be reading, then encosing it in a spoiler box or putting thumbnails of big images may be warranted.
but if its a very specialized thread like this one, i don't think it's important.

You're probably right - it would still make it easier to separate the error log from the "this happens when" part... but I'm just thinking out loud :)
- carpe noctem

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #15 on: May 22, 2006, 10:20 PM »
Ok, as of 1.04 that exception should be fixed, and the manual update button has been added.

EDIT: 1.05 is out, some minor fixes and the ability to abort an update, GUI changes...

EDIT: 1.06 is out, rewrote most of the code, focusing on the threading...

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:
« Last Edit: May 23, 2006, 01:36 AM by PhilKC »

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #16 on: May 23, 2006, 02:41 PM »
Hey, for 1.09, is there a way to make it so that you can enter the URL of the page to be checked for the update that way it isnt hard coded into the app. Perhaps this can be stored in a registry key, and loaded each time the program starts. That way, if symantec were to change their page, you wouldnt have to update the program.

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #17 on: May 23, 2006, 02:44 PM »
Also, the exception is thrown when you click an empty spot in the log window. Also, ntvdm.exe isnt being killed in task manager. I still show it running.

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #18 on: May 24, 2006, 05:09 AM »
 One thing I did notice is that when you change the amount of time between updates, its not remembered when you restart the app and its also not updated on the timer. Is there a way to do this via a registry key? You could store whether or not silent updates are enabled, auto update is enabled, the update interval and the default log file to use all in registry. Would this be feasible? One final thing, when you press update to do a manual update, it doesnt reset the timer (at least in the titlebar of the app). Thanks again!

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #19 on: May 24, 2006, 06:15 PM »
:) A late entry!

DownloadAndRun - Download a file from the internet, and run it or open it in a program.

Features:
- Open the ini file to change the file to download, to show traytip and what action to take.
- Wildcard * can be used in the filename=
- To just save the download file, use action=
- To run the downloaded file, use action=Run
- To open the downloaded file in, say Notepad, use action=Run Notepad.exe

You'll find the downloads and more info at 1 Hour Software by Skrommel.

This one is a bit rough, like missing a gui for the settings, but I plan to expand it to extract any info from a web page, not just links, and format the output, so just try it out. Also I'd like to add multiple sources, scheduling and multple threads.

Also, RegEx is possible, but I find it somewhat cryptic, maybe wildcards is good enough?

Skrommel
« Last Edit: May 24, 2006, 06:23 PM by skrommel »

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #20 on: May 24, 2006, 06:43 PM »
Better late than never ;-)

Does this one allow configuration of an interval to check for the file at the specified url? Also, perhaps a way to specify parameters to pass to the downloaded file would be nice, unless that is possible using current conventions. I do like the tooltip idea :)

PhilKC

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 117
    • View Profile
    • BlueScreenOfDeath.co.uk
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #21 on: May 25, 2006, 03:19 PM »
Hey, for 1.09, is there a way to make it so that you can enter the URL of the page to be checked for the update that way it isnt hard coded into the app. Perhaps this can be stored in a registry key, and loaded each time the program starts. That way, if symantec were to change their page, you wouldnt have to update the program.

Done.

Also, the exception is thrown when you click an empty spot in the log window. Also, ntvdm.exe isnt being killed in task manager. I still show it running.

Fixed.

One thing I did notice is that when you change the amount of time between updates, its not remembered when you restart the app and its also not updated on the timer. Is there a way to do this via a registry key? You could store whether or not silent updates are enabled, auto update is enabled, the update interval and the default log file to use all in registry. Would this be feasible? One final thing, when you press update to do a manual update, it doesnt reset the timer (at least in the titlebar of the app). Thanks again!

Changed. (Although the title bar wont update instantly)

1.09 ahoy!

PhilKC
It's not a bug, it's an undocumented and unexplainable feature.
Stick it on your site:

skywalka

  • Member
  • Joined in 2005
  • **
  • Posts: 254
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #22 on: May 25, 2006, 03:46 PM »
I use Kaspersky AV & is automatically checks for updates every hour.

Symantec doesn't update often enough.  Didn't the Mellisa virus infect millions of computers in less than 24 hours?

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #23 on: May 25, 2006, 04:16 PM »
Symantec updates several times a day, its just the liveupdate defs arent put out but every 2-3 days. You can always download daily updates

skywalka

  • Member
  • Joined in 2005
  • **
  • Posts: 254
    • View Profile
    • Donate to Member
Re: IDEA: Symantec anti-virus auto-updater
« Reply #24 on: May 25, 2006, 04:38 PM »
I don't think that's good enough.