TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: kenkrupa on October 05, 2010, 02:17:44 PM

Title: How to check for program update? (Lisp version number)
Post by: kenkrupa on October 05, 2010, 02:17:44 PM
I see many programs that have a Check for Update thing in their Help menu. I'm wondering if anyone has a slick way of implementing the same thing, without some kind of advanced technology. I thought of putting the latest version number in a file on my website, to compare with the local version number, but I'm not having any luck reading a file on the web with LISP. Any ideas?
Title: Re: How to check for program update?
Post by: Lee Mac on October 05, 2010, 02:21:26 PM
I don't know much web manipulation, but perhaps download the file (http://www.theswamp.org/index.php?topic=33750.0)?
Title: Re: How to check for program update?
Post by: kenkrupa on October 05, 2010, 09:25:35 PM
I don't know much web manipulation, but perhaps download the file (http://www.theswamp.org/index.php?topic=33750.0)?

Yeah, I suppose that might work, but I don't think I want the user to experience a file being downloaded. Might be problematical as well as messy. Thanks anyhow.
Title: Re: How to check for program update?
Post by: Lee Mac on October 06, 2010, 03:11:27 AM
I'm drawing a blank - perhaps someone else can offer a better solution  ;-)
Title: Re: How to check for program update?
Post by: CAB on October 06, 2010, 08:37:23 AM
Well if you want to get version information some data will need to be exchanged. (stating the obvious)
The user could enter the version number at the web site or or simply look at the current version number
and click an Upgrade Button to download the newer version.
Or the LISP could transmit the version number which may be an uploaded file or packet of data. Not sure how to do that.
The LISP could get the version number by downloading a file with the latest version number. Not sure how to do that either.

I suspect that many web sites read a config file from your computer which has the current version in it.
Then it informs the user that there is a newer version available. The user has a choice to download the new version.
Title: Re: How to check for program update? (Lisp version number)
Post by: dgorsman on October 06, 2010, 10:31:44 AM
Most programs that I've seen store the overall version number in the registry under HKLM.  When there are multiple components such as DLLs, I think the upgrade program checks the file metadata.

Edit: just hit me - perhaps the fastest way would be to create a text file with the appropriate information (easy to do with LSP), then either provide an email address or call the email program automatically.
Title: Re: How to check for program update? (Lisp version number)
Post by: Matt__W on October 06, 2010, 10:46:35 AM
Might be of some help....

http://forums.augi.com/showthread.php?t=84622
&
http://www.cadtutor.net/forum/showthread.php?38453-autolisp-access-internet