Solved

Checking for newer versions

Posted on 2002-07-08
3
292 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 70

Expert Comment

by:Éric Moreau
ID: 7139244
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

770 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