Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Checking for newer versions

Posted on 2002-07-08
3
Medium Priority
?
306 Views
Last Modified: 2010-05-03
How do I setup a method of accessing the internet to check for newer versions of an application and then notifying the user if they need to download or not?
0
Comment
Question by:perkster
3 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 7138580
One approach would be to use the XMLHTTP object from MSXML2 to POST a request with the current version to an ASP page.  THe ASP on the server would check version and notify in a response whether a new version is required.

Anthony
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 400 total points
ID: 7139018
One simple way could be having a plain text file with the last version number in server and check with inet control.
In example:
Sub CheckVer()
Dim sver As String, i As Integer
Dim sVerMajMin() As String
' contents of myprogver.txt: 2.1
sver = Inet1.OpenURL("http://mydomain.com/updates/myprogver.txt", icString)
sVerMajMin = Split(sver, ".", , vbTextCompare)
For i = UBound(smajminver) - 1 To 0 Step -1
    If smajminver(i) > App.Minor Then
        MsgBox "You need to update your app"
        Exit For
    End If
    If smajminver(i) > App.Major Then
        MsgBox "You need to update your app"
        Exit For
    End If
   
Next i
End Sub
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7139244
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question