Jump to content

Download Last NAV Update


Ahmedmb
 Share

Recommended Posts

; ----------------------------------------------------------------------------
; AutoIt Version: 3.1.0
; Download Last NAV Update
; Author: Ahmed Mohamed Bayomy
; Em@il: Ahmedmb@gawab.com
; ----------------------------------------------------------------------------


#include <GuiConstants.au3>
#notrayicon
HotKeySet("#x", "Abort")
; GUI
dim $Active,$SetState,$GUIStyle,$GUIStyleEx,$line,$file,$x86,$Link
$Active = 1
$SetState = $GUI_DISABLE
$GUIStyle = BitOR($WS_BORDER, $WS_POPUP)
$GUIStyleEx = BitOR($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST)
GuiCreate ("Download", 400, 20, (@DesktopWidth-400)/2,1, $GUIStyle, $GUIStyleEx)
; PROGRESS
GUICtrlCreateProgress( 1, 1, 398,18)
GuiCtrlSetData(-1, 0)

InetGet("ftp://anonymous:@ftp.symantec.com:21/public/english_international/antivirus_definitions/norton_antivirus/md5-hash.txt","md5.txt")
$file = FileOpen("md5.txt", 0)
While 1
    $x86=""
    $line = FileReadLine($file)
    If @error = -1 Then ExitLoop
    $x86 = StringTrimLeft($line, StringInStr($line, "-x86.exe") - 13)
    if $x86 <> "" then $Link =  $x86
Wend
if FileExists($Link) then
    MsgBox(0,"Download NAV Update","You have last update " & $Link)    
    FileDelete("md5.txt")
    Exit
endif
dim $S
$s=InetGetSize ("http://definitions.symantec.com/defs/" & $Link)
;~ Show GUI
GUISetState(@SW_SHOW)
InetGet("http://definitions.symantec.com/defs/" & $Link, $Link, 1, 1)

While @InetGetActive
  GuiCtrlSetData(-1, @InetGetBytesRead / $s * 100)
  Sleep(250)
Wend
FileDelete("m5.txt")
run($Link )

Func Abort()
    InetGet("abort")
    FileDelete($Link)
    FileDelete("md5.txt")
    Exit
EndFunc

:)

Edited by Ahmedmb
Link to comment
Share on other sites

good job (i think i don't use nortan) but does nortan really not have an updater i use AVG Free and that has an automatic updater

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Link to comment
Share on other sites

ya i would have laughed if it didn't because AVG does

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Link to comment
Share on other sites

ya i would have laughed if it didn't because AVG does

<{POST_SNAPBACK}>

The script is possibly, for downloading the Norton's Intelligent Updater. This file is a redistribable for updating network PCs etc. You can have a freshly installed OS on a PC, install Nortons, then use the Intelligent updater to have the latest definitions and program updates. Then you can safely go online.

Does AVG do that? :)

I use Avast now. Very happy with it. :D

Link to comment
Share on other sites

i don't think AVG does that. I've never heard of Avast what does that have

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Link to comment
Share on other sites

@ Ahmedmb

The script looks good.

@ Xenogis

I use Avast4Home, which is free.

Has pretty much everything except what the pro version has. Which is script blocking, and a couple of other trival things. But it integrates with the OS nicely and proves aggressive against any virus. The site is here. I recommend it to anyone to use. If you want more protection, pay for the pro version.

I have not used AVG, so I cannot compare it to Avast.

Link to comment
Share on other sites

avast looks pretty nice :)

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

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
 Share

  • Recently Browsing   0 members

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