JSThePatriot Posted January 22, 2005 Share Posted January 22, 2005 @Saunders Excellent job on this project. I was going to get something out. You have beat me to the punch. I have been unable to work on this as of yet. I have been moving, and changing jobs and such. I will get some time this coming week unless yours has been selected as the final version. Excellent work and suggestions. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
Josbe Posted January 22, 2005 Share Posted January 22, 2005 Excellent. The Updater looks better.Small note: When is interrupted the downloading process, I see that it's not necessary to close the Updater directly...What do you think? Thanks Rob. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 22, 2005 Author Administrators Share Posted January 22, 2005 Excellent. The Updater looks better.Small note: When is interrupted the downloading process, I see that it's not necessary to close the Updater directly...What do you think? Thanks Rob. There's no way to cancel a download at the minute so closing the script is the only way. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Josbe Posted January 22, 2005 Share Posted January 22, 2005 There's no way to cancel a download at the minute so closing the script is the only way.<{POST_SNAPBACK}>Oh...AutoIt's thing... BTW: Very good, that you included this tool in the installer. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 22, 2005 Author Administrators Share Posted January 22, 2005 I'll try and add the pause/resume/cancel option later, or tomorrow. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
therks Posted January 23, 2005 Share Posted January 23, 2005 (edited) I'll try and add the pause/resume/cancel option later, or tomorrow.Awesome, looking forward to it.Once the download is done, I am used to updaters popping up a msgbox asking if you want to run. When the file was downloaded, I didn't know what to do... I didn't notice the buttons had appeared or changed text or something. Other than that it was a flawless update...Lar.Okay, the message box is now a prompt with Yes/No, asking if you want to start the installer. Edited January 23, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
BasicOs Posted January 23, 2005 Share Posted January 23, 2005 Is it possible to keep the replaced files in case of a rollback, in case there is any problem?, Thanks Autoit.es - Foro Autoit en Español Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http Link to comment Share on other sites More sharing options...
therks Posted January 23, 2005 Share Posted January 23, 2005 I think that would be better handled by the installation program, not the updater, as I would need to be able to access a full list of all the files updated to be most efficient. I could probably just have it copy the folder to a backup location, but you could easily do that yourself too, couldn't you? Note: I hadn't checked the Unstable-Revolutions thread when I made that post earlier, and didn't realize that Jon had already added the "abort" ability to InetGet, I'm working on the script now to make the cancel button abort and return to the main GUI, but I have to go right now. You can probably expect to see it sometime tomorrow morning. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
therks Posted January 23, 2005 Share Posted January 23, 2005 (edited) You know, it's the oddest thing. On the download display, I'm showing how many kilobytes are currently downloaded. While testing something, I wanted it to round off to two decimal places, but I couldn't get it to work. For some reason, it always seems to Int() or Round() it, even if I just go $s_DnBytes = @InetGetBytesRead / 1024 & ' KB' It absolutely will not return decimal places. It's so weird. Anyway! Here's a version with a working cancel button! Goodnight! Edit: By the way Jon, you don't need to include the CompareVersions.au3 in the install. I've been putting the function directly into the AutoUpdateIt.au3 for the last couple versions. Oh and *GASP* Neither me nor my script are mentioned in the documentation! I'm hurt, tragically. In fact, I demand you stop including it with the releases! I'm kidding, for those of you who didn't catch on. Edited January 23, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Helge Posted January 23, 2005 Share Posted January 23, 2005 Maybe you should try Round ? Untested, but anyway I think you get it.. $s_DnBytes = Round(@InetGetBytesRead / 1024,2) & " kb" Good luck ! Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 23, 2005 Author Administrators Share Posted January 23, 2005 You know, it's the oddest thing. On the download display, I'm showing how many kilobytes are currently downloaded. While testing something, I wanted it to round off to two decimal places, but I couldn't get it to work.For some reason, it always seems to Int() or Round() it, even if I just go$s_DnBytes = @InetGetBytesRead / 1024 & ' KB'It absolutely will not return decimal places. It's so weird.Anyway!Here's a version with a working cancel button!Goodnight!Edit: By the way Jon, you don't need to include the CompareVersions.au3 in the install. I've been putting the function directly into the AutoUpdateIt.au3 for the last couple versions.I was really worried for a second there thinking there was some major bug, then I remembered that InetGet actually downloads in packets of 1024 bytes, so by fluke your code will always be a whole number. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
therks Posted January 23, 2005 Share Posted January 23, 2005 Ahh, it all makes sense now (and no, I still haven't gone to bed, that starts... now!). My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
jlandes Posted January 24, 2005 Share Posted January 24, 2005 @Saunders: I just wanted to say that I think you did a very good job on writing this script. This is exactly the kind of script that will show people the capabilities of AutoIt. Good job! Sincerely yours,Jeremy Landesjlandes@landeserve.com Link to comment Share on other sites More sharing options...
Chris_1013 Posted January 24, 2005 Share Posted January 24, 2005 Would it be possible to show the release date of the public and beta versions somewhere on the updater? Link to comment Share on other sites More sharing options...
therks Posted January 24, 2005 Share Posted January 24, 2005 I could easily add it to the GUI, but I need somewhere to get the information from. Jon would need to add it to the update.dat. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Chris_1013 Posted January 24, 2005 Share Posted January 24, 2005 Yeah, I knew that would be the case... whadyathink Jon? It'd be a nice addition IMO. Link to comment Share on other sites More sharing options...
Doxie Posted January 25, 2005 Share Posted January 25, 2005 Saunders, where can i found your source code? Were ever i lay my script is my home... Link to comment Share on other sites More sharing options...
Chris_1013 Posted January 25, 2005 Share Posted January 25, 2005 Ummm... try post 71 on the up higher, or, if you've installed a recent version of AutoIt, it'll be at c:\Program Files\AutoIt3\Extras\AutoUpdateIt\AutoUpdateIt.au3 Link to comment Share on other sites More sharing options...
kloyenz Posted January 26, 2005 Share Posted January 26, 2005 where can i download the latest version of saunders ? Thnx Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 26, 2005 Author Administrators Share Posted January 26, 2005 I've added a "filetime" key to the update.dat file. It contains the timestamp in YYYYMMDDHHMMSS format. (Like FileGetTime/SetTime). (Edit: It's in UK/GMT so the HHMMSS stuff probably not that useful ) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ 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