Another Auto Update Script

By sizzlemctwizzle Last update Feb 11, 2011 — Installed 15,480 times.

Thanks

in
Subscribe to Thanks 8 posts, 3 voices



Chris4 Scriptwright

Hey,

I just wanted to say that I'm using this for my two scripts and it works great.

http://userscripts.org/users/53985

Thanks!

Chris

 
sizzlemctwizzle Script's Author

Thank you. Glad you find it useful.

 
Chris4 Scriptwright

Having a slight problem with my script.

http://userscripts.org/scripts/show/46418

I changed the name of the script. Now the auto updater has two User Script Commands, one for the old name and one for the new. It also tries to install twice. I don't know where it's getting the old name from..?

Edit: Damn. I just realised, when you change the name of the script, it doesn't replace the old one. Now every time I update it it's going to ask the users to install it twice. :-/ Is there anything I can do?

Edit2: Posted here - http://userscripts.org/topics/25083

 
sizzlemctwizzle Script's Author

That is a common mistake that I've made myself before. I'd advise you to not change the name of the script anymore. I've updated my script to stop checking for updates if the script it finds on us.o has a different name then the one that is installed. Other improvements in this release include: no longer check for updates if a script has been deleted, not throwing an error if a connection to us.o can't be made, and improved regular expression.

 
Chris4 Scriptwright
Ok thanks, I updated it to your new script.

I still think there's going to be problems though. I'll try and explain as best I can.

The user will now have two separate scripts:
- GCal - Change Today's Color v1.1
- Google Calendar - Today's Color v1.1.1 -> v1.1.2

v1.1 = old
v1.1.1 = updated with new name
v1.1.2 = updated with new auto updater

The old GCal v1.1 is still going to be sitting there requesting updates once a day - This script can't update, because when it does, it just installs a separate new script with a new name, leaving it sitting there requesting updates once a day :-/. Is that right?
 
sizzlemctwizzle Script's Author

Yes the old version that includes the updater that doesn't care about whether the names are different will still ask the user to install a separate script. Meaning that whenever you update your script in the future they will be prompted to install the latest version twice.

 
Chris4 Scriptwright

Damn. Ok, thanks for helping. Hopefully I won't have to update it again.

 
Der Flatulator6 Scriptwright
Firefox

My thanks also. I've written a fairly simple script to add some extra posting features to a forum I moderate, and this is the ideal way to keep users updated once I release it to the forum users. The alert box that pops up is the best way to go about it, it's clean and simple. Thanks, great work.

I assume the whole @require would be ignored in Chrome? or would it cause the script to not run in Chrome? webkit is starting to annoy me, lol.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel