Jump to content
Sign in to follow this  
emmanuel

AutoIt auto updater

Recommended Posts

Here are my 2 cent on this subject:

I never download the BETA/Unstable installset because i believe you should always run the last production version and test with the BETA version from another directory. here's the script i use for downloading, which is located in the Autoit3Beta directory:

;download latest unstable 
GetFile('AutoIt.chm')
GetFile('AutoIt3.exe')
GetFile('AutoIt3SC.bin')
Func GetFile($FILE)
   SplashTextOn("Getting Beta files", $FILE, 200, 100)
   URLDownloadToFile("http://www.autoitscript.com/autoit3/files/unstable/autoit/" & $FILE, @ScriptDir & "\" & $FILE)
EndFunc  ;==>GetFile
good point, and last time I was going to write this, that's just how I was going to do it... ya know, without the elegant function use... might I suggest you add the fakeparam to trick the IE cache?

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

Hey everyone, here's a quick and dirty scite DL & install:

getfile('scite4autoit3.exe')

Run(@ScriptDir & "\scite4autoit3.exe /S")

Func GetFile($FILE)
  SplashTextOn("Getting Beta files", $FILE, 200, 100)
  URLDownloadToFile("http://www.autoitscript.com/fileman/users/jdeb/" & $FILE & "?fakeparam=" & int(random(500)), @ScriptDir & "\" & $FILE)
EndFunc ;==>GetFile

I guess I'll make it a part of the updater, with a seperate ini entry... later...

changed it to use the GetFile func that Jdab wrote. :D

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

I've updated the code to include a prompt to ask if you'd like to install scite, if you don't have the INI file, if you do have the ini file, modify the ini file to include

updatescite=1
in the PREFS section.


"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...