AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Easy Software Version Updating - Now Possible

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
HCProfessionals



Joined: 18 Jun 2007
Posts: 166

PostPosted: Mon Dec 07, 2009 9:55 am    Post subject: Easy Software Version Updating - Now Possible Reply with quote

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 Very Happy



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.
Back to top
View user's profile Send private message
HCProfessionals



Joined: 18 Jun 2007
Posts: 166

PostPosted: Thu Dec 17, 2009 2:07 pm    Post subject: Reply with quote

Wow, cannot believe that no one found this useful...
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 561
Location: Galil, Israel

PostPosted: Thu Dec 17, 2009 10:51 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
SoggyDog



Joined: 02 May 2006
Posts: 783
Location: Greeley, CO

PostPosted: Fri Dec 18, 2009 4:26 pm    Post subject: Reply with quote

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.
_________________

SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Elesar



Joined: 28 Jun 2007
Posts: 622
Location: Somewhere around 35 12N 101 49W

PostPosted: Fri Dec 18, 2009 5:40 pm    Post subject: Reply with quote

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 Razz
Back to top
View user's profile Send private message
Joy2DWorld



Joined: 04 Dec 2006
Posts: 561
Location: Galil, Israel

PostPosted: Sat Dec 19, 2009 8:40 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Elesar



Joined: 28 Jun 2007
Posts: 622
Location: Somewhere around 35 12N 101 49W

PostPosted: Sat Dec 19, 2009 10:35 pm    Post subject: Reply with quote

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 Razz
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group