SlavikMan Posted September 16, 2008 Share Posted September 16, 2008 so i have a little program and i wanted to know how can i make her update when i say click a UPDATE button i have a storage and i think i need to make an ini file for this and put it in my website i use an UCOZ.com website and i just want the program to check if there is any updates and when there are updates to download them can someone explain it to me please Link to comment Share on other sites More sharing options...
PartyPooper Posted September 16, 2008 Share Posted September 16, 2008 (edited) Have a look at the InetFileUpdate UDF in my signature. It may give you the help you are after. Edit: Typo Edited September 16, 2008 by PartyPooper Link to comment Share on other sites More sharing options...
SlavikMan Posted September 16, 2008 Author Share Posted September 16, 2008 too much high language cant you make it simple? Link to comment Share on other sites More sharing options...
PartyPooper Posted September 17, 2008 Share Posted September 17, 2008 Wow, I thought I had commented it enough. I'm not trying to discourage you but updating a running file via the internet isn't a simple matter for someone who's new to AutoIt as there are many checks that need to be done. Considering my UDF does all those checks for you and all you have to do is include it and call it in any code you write, perhaps before you begin to fly, you may have to learn to walk by understanding a little more about AutoIt by using the examples it contains in the Help File. Specifically, have a look at the keywords, InetGet, InetGetSize, IniRead, _VersionCompare and most of the File... keywords under the File, Directory and Disk Management function. Link to comment Share on other sites More sharing options...
Linux Posted September 17, 2008 Share Posted September 17, 2008 maybe it helps Global $rev = 10 _Update($rev) ;check for updates ; or _Update();Force update Func _Update($ver = 0) Local $FILE_t = "\version.txt" Local $UPDATETXT = "http://domain.com/update.txt" Local $UPDATEEXE = "http://domain.com/installer.exe" InetGet($UPDATETXT, @TempDir & $FILE_t) Local $FILEHANDLE2 = FileOpen(@TempDir & $FILE_t, 0) Local $VER1 = FileReadLine($FILEHANDLE2, 1) FileClose($FILEHANDLE2) ConsoleWrite(@CRLF & "Local Version:" & $ver) ConsoleWrite(@CRLF & "Server Version:" & $VER1) If $ver >= $VER1 Then TrayTip("", "No Update needed...", 2) Return EndIf TrayTip("", "Updating to Rev: " & $VER1 & " ! Please Wait...", 1) Local $changelog = "http://domain.com/changelog.txt" InetGet($changelog, @ScriptDir & "\changelog.txt") ShellExecute(@ScriptDir & "\changelog.txt", "", @ScriptDir, "edit") ConsoleWrite(" UPDATING") InetGet($UPDATEEXE, @ScriptDir & "\Installer.exe") Run(@ScriptDir & "\Installer.exe") Exit EndFunc ;==>_Update You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!" Link to comment Share on other sites More sharing options...
SlavikMan Posted September 17, 2008 Author Share Posted September 17, 2008 this i understand a little more i will try it and tell you if it helped Link to comment Share on other sites More sharing options...
SlavikMan Posted September 17, 2008 Author Share Posted September 17, 2008 this i understand a little more i will try it and tell you if it helped Link to comment Share on other sites More sharing options...
SlavikMan Posted September 17, 2008 Author Share Posted September 17, 2008 this i understand a little more i will try it and tell you if it helped Link to comment Share on other sites More sharing options...
dbzfanatic Posted September 17, 2008 Share Posted September 17, 2008 Please don't double or triple post. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
SlavikMan Posted September 17, 2008 Author Share Posted September 17, 2008 (edited) Oops srry guys it was an exident please delete them ot something and do you know how can i make an installation to my program? Edited September 17, 2008 by SlavikMan Link to comment Share on other sites More sharing options...
Shimgreen Posted September 17, 2008 Share Posted September 17, 2008 there are many free programs that allow you to set up files you need installed, but i like to use this one:http://www.download.com/Install-Creator/30...4-10218346.html Link to comment Share on other sites More sharing options...
ChromeFan Posted September 17, 2008 Share Posted September 17, 2008 there are many free programs that allow you to set up files you need installed, but i like to use this one:http://www.download.com/Install-Creator/30...4-10218346.htmland also my choice... ClickTeam's this product Rocksss! Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, What happened? Casey Stengel Link to comment Share on other sites More sharing options...
SlavikMan Posted September 17, 2008 Author Share Posted September 17, 2008 yes but with this script it opens me a dos and does nothing no updates no nothing(its not sepose to be dos its sepose to be installation) Link to comment Share on other sites More sharing options...
ChromeFan Posted September 17, 2008 Share Posted September 17, 2008 you can also create a good looking Installer with autoit. Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, What happened? Casey Stengel Link to comment Share on other sites More sharing options...
SlavikMan Posted September 17, 2008 Author Share Posted September 17, 2008 the updater dosent work Link to comment Share on other sites More sharing options...
Linux Posted September 17, 2008 Share Posted September 17, 2008 maybe you should change some vars to meet your scenario. Try manual download the link, to confirm the it. The path/names its case sensitive, if you are downloading from a Linux server. Also, run it in debug mode, and see what is missing. Kind regards, Linux You can help! Donate to AutoIt! or, visit ClimatePREDICTION.netMy posts:Travian Bot Example (100+ servers) BETAHow to Host you code/app for free! (unlimited team number) (Public or Private)"Sir, we're surrounded!" "Excellent. We can attack in any direction!" 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