MSFN Forum: how can I automaticly download the latest version of a program - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage ˇ MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how can I automaticly download the latest version of a program Rate Topic: -----

#1 User is offline   sjaak23 

  • Group: Members
  • Posts: 2
  • Joined: 17-October 05

  Posted 17 October 2005 - 07:07 AM

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

This post has been edited by sjaak23: 17 October 2005 - 07:14 AM



#2 User is offline   Zxian 

  • Scroll up - see the Google bar?
  • Group: Super Moderator
  • Posts: 5,066
  • Joined: 30-September 04
  • OS:none specified
  • Country: Country Flag

Posted 17 October 2005 - 10:53 AM

Go to the website of the program and download it. Then check out the Technology News section for updates. :)

#3 User is offline   yoyo92 

  • Jerry Springer
  • Group: Members
  • Posts: 30
  • Joined: 17-April 05

Posted 17 October 2005 - 12:45 PM

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!")


#4 User is offline   sjaak23 

  • Group: Members
  • Posts: 2
  • Joined: 17-October 05

Posted 18 October 2005 - 03:40 AM

thanks yoyo92 I can try this

This post has been edited by sjaak23: 18 October 2005 - 03:46 AM


#5 User is offline   yoyo92 

  • Jerry Springer
  • Group: Members
  • Posts: 30
  • Joined: 17-April 05

Posted 18 October 2005 - 04:30 AM

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....

This post has been edited by yoyo92: 18 October 2005 - 04:39 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy