Jump to content

Script to update the file (help)


Recommended Posts

Hello everybody I am Trying to Make a script to update my Trainer

But I'm not getting, I'm trying to make before opening the program, it checks the version of the program, if the site is newer it updates itself.

I have always problem with script updates

if someone can help me

be grateful

scripts below

Edited by 10031992

-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Link to comment
Share on other sites

I use the following approach:

1. Host a text file with the versionnumbers of the most recent file(s)

2. Read the textfile with InetRead ()

3. Compare version number(s)

4. Download the files to be updated and use a batch file to replace the original with the download.

The benefit of this approach is that you won't download a relatively big file if it's not needed and you can do partial updates if only certain parts of a project need updating.

I'll see if I can make an universal UDF for this tomorrow.

Link to comment
Share on other sites

I use the following approach:

1. Host a text file with the versionnumbers of the most recent file(s)

2. Read the textfile with InetRead ()

3. Compare version number(s)

4. Download the files to be updated and use a batch file to replace the original with the download.

The benefit of this approach is that you won't download a relatively big file if it's not needed and you can do partial updates if only certain parts of a project need updating.

I'll see if I can make an universal UDF for this tomorrow.

Ok, I'll be waiting

Sincerely Jonatas

Something similar here. UDF by FuryCell

A doubt, that your code, it has warned that a new version,

But he does not download the right file!

Only warns and redirects to the download page.

Thankss the all for help

-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Link to comment
Share on other sites

He spoke "I'll see if I can make an universal UDF for this tomorrow. "

So I wrote it this

if I use "InetGet" to download that will give? to implement this script

-------------------------------------------------------------------------------------------------------------------------------------------- [center][/center][center]Autoit Support Forum in Portuguese | AutoitBrasil.com[/center] [sub]My Script :[/sub]Simples Login for Program

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...