Solved

Checking for newer versions

Posted on 2002-07-08
3
290 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 100 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 69

Expert Comment

by:Éric Moreau
ID: 7139244
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now