Is it possible to have a feature where the application checkes for updates every 7 days or each launch?

If so, please could someone point me in the correct direct to adding this to one of my applications.

Thanks

Recommended Answers

All 4 Replies

Member Avatar for Unhnd_Exception

If your deploying your app as a click once app its real easy.

How are you deploying?

Well Ibwas creating installers but because I'm updating it a fair amount, i got bored of creating them very quickly.

So now I'm just building it and using the .exe

I found this on the web and used it for my app, with some minor tweaking.

So far so good.

I stuck to this in the end. Thanks

Private Sub UpdateToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menu_help_update.Click
        Dim wc As New WebClient
        Dim currentversion As String = My.Application.Info.Version.ToString
        Dim Version As String
        Dim Updater As Integer

        Version = wc.DownloadString("http://site.com/fileversion.txt")

        If Version > currentversion Then
            Updater = MessageBox.Show("Theres a new verison available." & vbNewLine & "Would you like to download the latest update?", "Updater", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
            If Updater = vbYes Then
                System.Diagnostics.Process.Start("http://www.site.com/")
            Else
                GoTo final
            End If
        Else
            MessageBox.Show("Theres no new versions!", "Updater", MessageBoxButtons.OK, MessageBoxIcon.Information)
        End If
final:
    End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.