AutoHotkey Community

It is currently May 27th, 2012, 12:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: December 7th, 2009, 10:55 am 
Offline

Joined: June 19th, 2007, 12:04 am
Posts: 174
Example of outdated software with the link that would be inserted into script (yes the link is live for a demo):

Code:
Run, http://www.northernhost.org/software/hcprofessionals/index.php?v=1.0



Example of updated software with the link that would be inserted into updated script (yes the link is live for a demo):

Code:
Run, http://www.northernhost.org/software/hcprofessionals/index.php?v=1.2


Basically when your new software comes out, it will have the updated code in the script, which will let the user know they are running out of date software when he or she does a version check in the software.



Instructions:

All you have to do is PM me with the following information:

New Users, send the following information for account setup (please allow 24-48 hours):
Quote:
1. Current autohotkey username
2. A password other than the one you use here on autohotkey
3. Application Name
4. Application Version Keep to strict numerical values like "1.0" (not 1.0.1 ect)
5. Application File-name Example "download.zip"
Note: File Extensions Allowed: .zip, .rar - compilations must be zipped, no exceptions!

6. Include the following code in your script:

Code:
Run, http://www.northernhost.org/software/username/index.php?v=X


Note: In the script above, replace username with your autohotkey username you gave in step 1. Note that letters will be lowercase in the url. Replace X with the software version you gave in the beginning.

A good example for code if I personally uploaded with my current autohotkey username (which is HCProfessionals) and an application version 1.0:
Code:
Run, http://www.northernhost.org/software/hcprofessionals/index.php?v=1.0


7. After I have sent you a confirmation that your account has been setup and the information for your software has been added to the server, go to: http://northernhost.org/software and login.

8. Click on the upload button and upload your software. Be sure that the file-name matches the one you sent above in Step 5 or this will not work.

9. After the upload has completed, your good to go :D



Users looking to update their software version, please send the following information (please allow 24-48 hours):
Quote:
1. Account username you signed up with
2. Application Name
3. New Application Version - Example: Update from 1.0 to 1.1
4. Application File-name - Example "download.zip" - If filename hasn't changed from previous version, just tell me that it's the same as before
5. After I have sent confirmation that the information you sent me has been updated on the server, Replace X with the updated software version in the example code below:

Code:
Run, http://www.northernhost.org/software/username/index.php?v=X


A good example for code if I personally uploaded with my current autohotkey username (which is HCProfessionals) and an updated application version 1.1:
Code:
Run, http://www.northernhost.org/software/hcprofessionals/index.php?v=1.1


6. Login to your account at http://northernhost.org/software.

7. Delete and re-upload your software if the updated software's file-name is the same as previous software, otherwise you can just upload as long as the file-name matches what you sent me.

8. You should be good to go.



Note: Each user will get 10 Mb of free space and use of the free version updating. If you require more than that, the price is only $2.50 per month, per 25 Mb of server space.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2009, 3:07 pm 
Offline

Joined: June 19th, 2007, 12:04 am
Posts: 174
Wow, cannot believe that no one found this useful...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2009, 11:51 pm 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
well,

it would make anyone who uses it dependent upon you for their update checking. What if you went out of business, for example ?


a super helpful solution would be to post the perl/PHP/Python or whatever script you've scripted so others could put on their own servers.

then if you offered it to others who didn't have a server.... would be pretty cool.

edit: actually, more helpful just to compare software version against any page. Eg., ahk script checks page myserver.com/softwareX/version/9.htm

so long as is current version, page says "you are running current version"

page gets updated with "old version" or whatever, etc...

does not even require any scripting...

_________________
Joyce Jamce


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2009, 5:26 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Joy2DWorld wrote:
A super helpful solution would be to post the perl/PHP/Python or whatever script you've scripted so others could put on their own servers.

Agreed.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2009, 6:40 pm 
Offline

Joined: June 28th, 2007, 1:08 am
Posts: 662
I do a similar system, just using URLDownloadToFile.

A simple text(or INI) file with all my updated scripts version numbers. (Not very big, as I don't actively update more than a handful of scripts, and mainly just for personal use)

If a script finds that its current version number is lower than the value found in the downloaded file, it launches the updater, which closes the main script, downloads the new one, then launches it instead (all after user prompts).

I do like the idea of using the server side scripting though, and may look into building my own eventually, as I am learning to build web-based applications currently :P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2009, 9:40 pm 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
Elesar wrote:
I do a similar system, just using URLDownloadToFile.

A simple text(or INI) file with all my updated scripts version numbers. (Not very big, as I don't actively update more than a handful of scripts, and mainly just for personal use)

If a script finds that its current version number is lower than the value found in the downloaded file, it launches the updater, which closes the main script, downloads the new one, then launches it instead (all after user prompts).


did you know you could post your working script and/or function to do that here FOR NO CHARGE!!

Many people don't realize that it is free to post scrips in this forum, and thus your work benefits many others....

especially scripts which are generally useful.

_________________
Joyce Jamce


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2009, 11:35 pm 
Offline

Joined: June 28th, 2007, 1:08 am
Posts: 662
Oh yeah, I post most of my "generally useful" scripts for others.

The ones that I use my update system on are scripts for work, and therefore probably not too "generally useful" as they are automation scripts that I use with PLC/Robotic controller monitoring programs. (Mainly navigating software that was written in Japanese and that I can't read, but must use for I/O monitoring)

I use a "public" laptop at work, meaning I could use any of 20 that the electricians at my plant have access to, so I just keep my scripts on my server, and when I use a laptop that hasn't been updated in a while, it notifies me automatically, and takes care of the updates while I continue the hookup or start troubleshooting.

If I had my update script in a working, configurable state, I would post it, but it is rather a mess right now, and at work, while I am not :P


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi®, Google Feedfetcher, Stigg and 43 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group