Hello, I need help with something. I need a way of updating that involves destroying the current .exe and then downloading the most recent version. I read about this and I think possibly a BAT would do what I need. I already have a check for updates code that gets read when form1 loads. the reason I need this is because I dont want to have to wait a long time for each update to download when if I do this it will be a 5-10 second proccess. i know its possible to do this as I have seen it done before. Here is my code so far:
Code:
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("https://dl.dropbox.com/u/48466223/Updater Test/Update.txt")
Dim response As System.Net.HttpWebResponse = request.GetResponse()
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim newestversion As String = sr.ReadToEnd()
Dim currentversion As String = Application.ProductVersion
If newestversion.Contains(currentversion) Then
Else
If MessageBox.Show("Do you want to Update?", "There is a new version.", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes Then
System.Diagnostics.Process.Start("https://dl.dropbox.com/u/48466223/Updater Test/Advanced Updater.exe")
End If
End If
Label1.Text = System.AppDomain.CurrentDomain.BaseDirectory
End Sub