sjaak23 Posted October 17, 2005 Share Posted October 17, 2005 (edited) 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. Edited October 17, 2005 by sjaak23 Link to comment Share on other sites More sharing options...
Zxian Posted October 17, 2005 Share Posted October 17, 2005 Go to the website of the program and download it. Then check out the Technology News section for updates. Link to comment Share on other sites More sharing options...
yoyo92 Posted October 17, 2005 Share Posted October 17, 2005 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 ScreenWinWaitActive( $Title_1 , "Welcome")Send ("{ENTER}");License ScreenWinWaitActive( $Title_1 , "License")Send ("{ENTER}");Install PathWinWaitActive( $Title_1 , "Choose")Send (@homedrive & "\xp\util\AutoIt\")Send ("{ENTER}");FinishWinWaitActive( $Title_1 , "Completing")Send ("{SPACE}")Send ("{ENTER}");*****************************;INSTALLATION VLC MEDIA PLAYER;*****************************$Title_1 = "VideoLAN VLC"Run ( "vlc-0.8.2-win32.exe" );Welcome ScreenWinWaitActive( $Title_1 , "Welcome")Send ("{ENTER}");License ScreenWinWaitActive( $Title_1 , "License")Send ("{ENTER}");Select ComponentsWinWaitActive( $Title_1 , "Choose")Send ("{Down}")Send ("{ENTER}");Path to be installed toSend (@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 More sharing options...
sjaak23 Posted October 18, 2005 Author Share Posted October 18, 2005 (edited) thanks yoyo92 I can try this Edited October 18, 2005 by sjaak23 Link to comment Share on other sites More sharing options...
yoyo92 Posted October 18, 2005 Share Posted October 18, 2005 (edited) you need 4 files on the desktop:1)a cmd file:@echo offcopy Y "cmdow.exe" "%systemroot%\system32\" <==== to hide the cmd windowcmdow @ /HIDregedit /S notify_yes.reg <====== to set the notify download complete to yesstart /wait autoit.exe <==================to launch the downloads and the setupsdel "%ALLUSERSPROFILE%\desktop\*.exe" <==delete all files after job is donedel "%USERPROFILE%\desktop\*.exe" <==del "%ALLUSERSPROFILE%\desktop\*.cmd" <== del "%USERPROFILE%\desktop\*.cmd" <==del "%ALLUSERSPROFILE%\desktop\*.reg" <== del "%USERPROFILE%\desktop\*.reg" <==exit2) your autoit script (change WinWaitActive names,because mine are in french) compiled in an exe file3) a reg file to change the notify download completedWindows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]"NotifyDownloadComplete"="yes"4) the cmdow.exethen,you have to set the cmd to be launched at the biggining of the windows sessionbut 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 changeexemple: winzip8trial.exe xinzip9trial.exeso 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 October 18, 2005 by yoyo92 Link to comment Share on other sites More sharing options...
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