Help - Search - Members - Calendar
Full Version: how can I automaticly download the latest version of a program
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
sjaak23
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.gif
Zxian
Go to the website of the program and download it. Then check out the Technology News section for updates. smile.gif
yoyo92
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



CODE
;*********************
;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!")
sjaak23
thanks yoyo92 I can try this
yoyo92
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....




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.