Jump to content

how can I automaticly download the latest version of a program


sjaak23
 Share

Recommended Posts

I'm bussy to make a full unattended installation of my Windows and other programs that I use.

My question is: how can I automaticly download the latest version of a program, for example MSN messenger?

Can I use RunOnceEx.cmd for this?

in advance thanks. :thumbup

Edited by sjaak23
Link to comment
Share on other sites


well... not sure the internet connection is on when you want to launch the cmd...

but it's a good idea to have more space on the unattended cd.

why not doing something like that:

using an autoit script that downloads files and install them at the first boot of windows desktop ?

but if the name of files changes on the website you have to change the name in your autoit

;*********************
;TELECHARGEMENT AUTOIT
;*********************
Run("C:\PROGRA~1\INTERN~1\iexplore.exe http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe")
WinWaitActive("Téléchargement de fichier")
Send ("{LEFT}")
Send ("{ENTER}")
WinWaitActive("Enregistrer sous")
Send ("{ENTER}")
WinWaitActive("Téléchargement terminé")
Send ("{ENTER}")


;*******************************
;TELECHARGEMENT VLC MEDIA PLAYER
;*******************************
Run("C:\PROGRA~1\INTERN~1\iexplore.exe http://downloads.videolan.org/pub/videolan/vlc/0.8.2/win32/vlc-0.8.2-win32.exe")
WinWaitActive("Téléchargement de fichier")
Send ("{LEFT}")
Send ("{ENTER}")
WinWaitActive("Enregistrer sous")
Send ("{ENTER}")
WinWaitActive("Téléchargement terminé")
Send ("{ENTER}")



;*********************
;INSTALLATION D'AUTOIT
;*********************
$Title_1 = "AutoIt v3.1.1 Setup"
Run ( "autoit-v3-setup.exe" )
;Welcome Screen
WinWaitActive( $Title_1 , "Welcome")
Send ("{ENTER}")
;License Screen
WinWaitActive( $Title_1 , "License")
Send ("{ENTER}")
;Install Path
WinWaitActive( $Title_1 , "Choose")
Send (@homedrive & "\xp\util\AutoIt\")
Send ("{ENTER}")
;Finish
WinWaitActive( $Title_1 , "Completing")
Send ("{SPACE}")
Send ("{ENTER}")

;*****************************
;INSTALLATION VLC MEDIA PLAYER
;*****************************
$Title_1 = "VideoLAN VLC"
Run ( "vlc-0.8.2-win32.exe" )
;Welcome Screen
WinWaitActive( $Title_1 , "Welcome")
Send ("{ENTER}")
;License Screen
WinWaitActive( $Title_1 , "License")
Send ("{ENTER}")
;Select Components
WinWaitActive( $Title_1 , "Choose")
Send ("{Down}")
Send ("{ENTER}")
;Path to be installed to
Send (@homedrive & "\xp\divx\VLC")
Send ("{ENTER}")
WinWaitActive( $Title_1 , "Completing")
Send ("{SPACE}")
Send ("{ENTER}")

;*************
;FIN DU BOULOT
;*************
MsgBox(64, "Installation", "TOUT EST OK!")

Link to comment
Share on other sites

you need 4 files on the desktop:

1)a cmd file:

@echo off

copy Y "cmdow.exe" "%systemroot%\system32\" <==== to hide the cmd window

cmdow @ /HID

regedit /S notify_yes.reg <====== to set the notify download complete to yes

start /wait autoit.exe <==================to launch the downloads and the setups

del "%ALLUSERSPROFILE%\desktop\*.exe" <==delete all files after job is done

del "%USERPROFILE%\desktop\*.exe" <==

del "%ALLUSERSPROFILE%\desktop\*.cmd" <==

del "%USERPROFILE%\desktop\*.cmd" <==

del "%ALLUSERSPROFILE%\desktop\*.reg" <==

del "%USERPROFILE%\desktop\*.reg" <==

exit

2) your autoit script (change WinWaitActive names,because mine are in french) compiled in an exe file

3) a reg file to change the notify download completed

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]

"NotifyDownloadComplete"="yes"

4) the cmdow.exe

then,you have to set the cmd to be launched at the biggining of the windows session

but the problem is,if a download doesn't work... the autoit script won't continue...i' m not an expert,so perhaps the script can be changed with a condition "if no exist' ,then continue ....

your idea is good,but it will take a lot of time if the internet connection is not very fast,and if there is a lot of softwares to setup.

and the other problem is that as soon as software is updated,the name change

exemple: winzip8trial.exe xinzip9trial.exe

so you have to change your autoit script as soon as a software is updated.

or an idea is to set a "package" with all the softwares in an zip or rar archive on a web site,and then to launch the download with the autoit script.

so it's impossible to build your cd ,and then everything is automatic for years...

you always have to have a look on the new versions,and their names....

Edited by yoyo92
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...