Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Net
- Public Class Form1
- WithEvents webclient1 As New WebClient
- WithEvents webclient2 As New WebClient
- Dim versaoatal As String = "1.1"
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- System.Diagnostics.Process.Start("http://gameselementary.net/")
- End Sub
- Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
- System.Diagnostics.Process.Start("http://gameselementary.net//index.php/p/v/shop")
- End Sub
- Private Sub webclient2_DownloadProgressChanged(ByVal sender As Object, ByVal e As System.Net.DownloadProgressChangedEventArgs) Handles webclient2.DownloadProgressChanged
- ProgressBar1.Maximum = e.TotalBytesToReceive
- ProgressBar1.Value = e.BytesReceived
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- Dim versaodosite As String = webclient1.DownloadString("http://gameselementary.net/nova.php")
- If versaodosite > versaoatal Then
- MessageBox.Show("Atualizando")
- webclient2.DownloadFileAsync(New Uri("http://gameselementary.net/setup.exe"), "C:\PokemonOrigins\setup.exe")
- System.Diagnostics.Process.Start("C:\PokemonOrigins\setup.exe")
- Close()
- End If
- If versaodosite = versaoatal Then
- MessageBox.Show("Seu Client já está Atualizado")
- System.Diagnostics.Process.Start("C:\PokemonOrigins\Otclient.exe")
- Close()
- End If
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement