Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st April 2001, 23:28   #1
Edgewize
Member
 
Join Date: Apr 2001
Posts: 89
I am almost done with a small (under 8kb) utility that checks a special web page for product updates. It downloads a formatted text file from a web site (configurable), like this one:

code:

EDGEUPDATE VERSION TRACKER rev. 2
!latest "Crystal Edit" 100 http://somepage.cjb.net/
!latest "Other Product" 24 http://otherpage.cjb.net/
If it doesn't begin with a !, its a comment.
Blah blah blah.
!latest "Other Product 2" 19 http://thirdpage.cjb.net/



I would upload this .txt file to any web host (lets say http://io.spaceports.net/~edge/database.txt). Now I call EdgeUpdate as follows:

EdgeUpdate http://io.spaceports.net/~edge/database.txt "Crystal Edit" 98

So EdgeUpdate downloads and scans the text file, and sees that the latest version of Crystal Edit is version 100. The command line said that the user's version was only 98, so a dialog box pops up and asks, "There is a new version of Crystal Edit available. Would you like more information?". If the user clicks yes, a new internet window opens to http://somepage.cjb.net/. If the user clicks no, nothing happens.

I am working on adding automatic patch downloading before I release this program.

Note that this program does not pop up a dialer window - if there is no existing internet connection, it returns silently without annoying the user.

Anybody interested?
Edgewize is offline   Reply With Quote
Old 21st April 2001, 23:29   #2
Edgewize
Member
 
Join Date: Apr 2001
Posts: 89
Oh, also noteworthy - there are no runtime dependancies. No DLLs or OCXs to worry about - though it does require Internet Explorer 3 to actually work. If IE is not installed, it just fails quietly (no error box).
Edgewize is offline   Reply With Quote
Old 22nd April 2001, 05:20   #3
Christophe
Sexaholic
 
Join Date: Oct 2000
Posts: 114
use jnetlib

hint: use jnetlib so your program won't depend on IE3.

http://www.nullsoft.com/free/jnetlib/

-christophe
Christophe is offline   Reply With Quote
Old 22nd April 2001, 13:23   #4
Edgewize
Member
 
Join Date: Apr 2001
Posts: 89
I would, but jnetlib can't automatically read the user's proxy settings or detect whether or not there is an internet connection. It also doesn't support transparent redirection, so you can't use a cjb.net url. If I didn't need those features, I probably would have just done basic winsock calls.

Besides, it is a (depressing) fact that every Windows computer shipped since 1997 has IE already installed.
Edgewize is offline   Reply With Quote
Old 22nd April 2001, 17:05   #5
arune
Junior Member
 
Join Date: Apr 2001
Posts: 18
Send a message via ICQ to arune
Great tool!!! Just don´t se the direct connection with NSIS...
I thought of fixing this feature for my latest project...
---------
/arune
http://www.arune.f2s.com
arune is offline   Reply With Quote
Old 22nd April 2001, 20:55   #6
Edgewize
Member
 
Join Date: Apr 2001
Posts: 89
Well it's not directly related to NSIS, but I figured anyone who uses NSIS would also be interested in this. It will be free and open source, of course, with a similar license.

Also, I might make patches for the NSIS source code so that the installer checks for a new version before copying files.
Edgewize is offline   Reply With Quote
Old 23rd April 2001, 22:49   #7
NickC
Junior Member
 
Join Date: Apr 2001
Posts: 8
Send a message via ICQ to NickC
if you could make this so it worked with NSIS that would be extremely cool, as ive just discovered NSIS and am now trying to pester someone with some coding skills to make it so it can access the web and download files off it.
NickC is offline   Reply With Quote
Old 26th April 2001, 13:40   #8
mcgarrah
Junior Member
 
Join Date: Mar 2001
Location: Raleigh NC USA
Posts: 26
Send a message via AIM to mcgarrah
I'd be interested in testing this. Especially with
a project I'm working on now. I'm updating every few
days and would like to warn my victims/beta testers
when updates and fixes are available.

Right now I email them which annoys people who are not
actively testing. Love this idea. Where do I go to
sign up?
mcgarrah is offline   Reply With Quote
Old 26th April 2001, 18:54   #9
NickC
Junior Member
 
Join Date: Apr 2001
Posts: 8
Send a message via ICQ to NickC
same here
NickC is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump