Solved

Checking for newer versions

Posted on 2002-07-08
3
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month7 days, 13 hours left to enroll

632 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