I just want to create an application where the user click on the "check for Update" button,
My application start to check update.
Uptill this I hav done so.
I use this Code for this:
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("pastebin link")
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
MsgBox("Application is up to date:" & vbNewLine & "Latest Version : --" & vbNewLine & "Current Version : --", MsgBoxStyle.Information, "Update Msg.")
Else
MsgBox("Update available," & vbNewLine & "Visit to our website to download newer version", MsgBoxStyle.Information, "Update msg")
End If
now this compare the Characters, If Differnce found Update available else not...
But If I add the link on my pastebin on 3rd line, and then is this possible that my updater app just check the first line.
And if update available then:
msg("update found," & vbnewline & "Want to Download?",vbmsgboxstyle.yesno,"msg")
If yes then start download from the link paste on 3rd line of same link.
I wanna try this but when I add the 3rd line it's says that Update available even though not so Please help me with this.
Please