|
|
Joined: May 2005
Posts: 35
Ameglian cow
|
OP
Ameglian cow
Joined: May 2005
Posts: 35 |
I want to make an update script soo when someone else in the channel use a script i made, it will auto update.
I made a update script using a download script i found here in another post, soo main script is in one file and the update is in another. Sofar i have tryed to simple download the main script and reload, via the update script and i think it works, but is it the right way of doing it? or is there a better way?
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
Based on your description, yes. You could put a version.txt in the web site that just has the current version number and set up a version check in the script that gets that file and checks it to the version you have loaded. That way it wouldnt DL the script every time you wanted to check for an update.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
weeee a script that auto updates, thats a nice opening for infection you crated there.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
no more so than if they loaded a script written by someone of questionable morals in the first place.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
That made no sence at all what you said.
If i said leaving a camp fire with smoldering ashes, is a nice opening to starting a forest fire.
You just cant answer it with "no more than pouring petrol on the trees and setting them on fire"
It just isnt a relevent comparasion.
|
|
|
|
Joined: Apr 2003
Posts: 701
Hoopy frood
|
Hoopy frood
Joined: Apr 2003
Posts: 701 |
One could state that someone who has scripts that do stuff the users don't expect is of questionable morals ![smile smile](/images/graemlins/mirc/smile.gif) As for the thread starter: download a small file with the version number (and maybe some other tags if you need) once in a while (socket scripting or external program or whatever). Then if that number has increased, download some version.txt with the updates and show that to the user. Then you could even ask if the user wants your script to automatically update or not. Just give the user your website url if he chooses not to auto-update.
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
If you want to avoid downloading a file, you can always just use sockets to read the source of the version.txt file. That would solve any chance of a virus being attached to it. I do that with my weather script, though it's actually reading from my download/info page instead of a version.txt file.
As far as auto-updates... you should have options for the users for automatically check for updates, automatically check for and install updates, and do not automatically check for updates. Some people don't like things happening behind their backs.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: May 2005
Posts: 35
Ameglian cow
|
OP
Ameglian cow
Joined: May 2005
Posts: 35 |
thx for the replys, and dont worry ![smile smile](/images/graemlins/mirc/smile.gif)
|
|
|
|
|
|