none
AutoUpdate RRS feed

Respostas

  • Boa tarde João,

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
        Do While True
            Dim client As New Net.WebClient
            Dim newVersion As String = client.DownloadString("http://www.myWebsite.com/updates/latestVersion.txt")
            If newVersion <> IO.File.ReadAllText("Your programs file location") Then
                For Each p As Process In Process.GetProcesses
                    If p.ProcessName = "your program's process name" Then 'If you don't know what your program's process name is, simply run your program, run windows task manager, select 'processes' tab, scroll down untill you find your programs name.
                        p.Kill()
                    End If
                Next
                IO.File.Delete("old program file location")
                client.DownloadFile("http://www.myWebsite.com/updates/12.05.2013.exe", "where ever you want to download your new program to (file location)")
                client.Dispose()
            End If
            Threading.Thread.Sleep(300000) 'freeze thread for 5 mins...
        Loop
    End Sub

    http://stackoverflow.com/questions/16636096/vb-net-program-should-auto-update

    Da uma olhada nesse link abaixo que é muito legal:

    https://autoupdaterdotnet.codeplex.com/SourceControl/latest

    Espero que te ajude,

    Att,


    Ricardo Cortes Microsoft Contingent Staff

    Esse contedo e fornecido sem garantias de qualquer tipo, seja expressa ou implicita.

    MSDN Community Support

    segunda-feira, 1 de dezembro de 2014 16:35

Todas as Respostas

  • Boa tarde João,

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
        Do While True
            Dim client As New Net.WebClient
            Dim newVersion As String = client.DownloadString("http://www.myWebsite.com/updates/latestVersion.txt")
            If newVersion <> IO.File.ReadAllText("Your programs file location") Then
                For Each p As Process In Process.GetProcesses
                    If p.ProcessName = "your program's process name" Then 'If you don't know what your program's process name is, simply run your program, run windows task manager, select 'processes' tab, scroll down untill you find your programs name.
                        p.Kill()
                    End If
                Next
                IO.File.Delete("old program file location")
                client.DownloadFile("http://www.myWebsite.com/updates/12.05.2013.exe", "where ever you want to download your new program to (file location)")
                client.Dispose()
            End If
            Threading.Thread.Sleep(300000) 'freeze thread for 5 mins...
        Loop
    End Sub

    http://stackoverflow.com/questions/16636096/vb-net-program-should-auto-update

    Da uma olhada nesse link abaixo que é muito legal:

    https://autoupdaterdotnet.codeplex.com/SourceControl/latest

    Espero que te ajude,

    Att,


    Ricardo Cortes Microsoft Contingent Staff

    Esse contedo e fornecido sem garantias de qualquer tipo, seja expressa ou implicita.

    MSDN Community Support

    segunda-feira, 1 de dezembro de 2014 16:35
  • obrigado amigo deu tudo certo mesmo 10 recomendo sua resposta 
    terça-feira, 2 de dezembro de 2014 16:44