I want to update my software with dropbox folder by "Sofware.txt" and "Software.exe" if I write "18.104.22.168" to txt document, software update itself.. But I cant do it please help!! IT ERRORS
ALL OF MY CODES ARE HERE
Imports System.Web Imports System.Net Imports System.Net.WebRequest Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Button1.Enabled = False Button1.Text = "Güncelleme kontrol ediliyor..." CheckForUpdates() End Sub Private Sub WebBrowser1_DocumentCompleted(sender As Object, e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted End Sub Public Sub CheckForUpdates() Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("https://dl.dropbox.com/s/1ihxaaukhyxcrca/1guncel.txt?dl=0") 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("You are up todate!") Else MsgBox("There is a new update we, will download it now for you.") WebBrowser1.Navigate("https://dl.dropbox.com/s/0l767w5plwm2ktm/guncel.exe?dl=0") End If End Sub End Class
Solved! Go to Solution.
@mhanbildiren, try changing the ?dl=0 in your Dropbox links to ?raw=1.
@Sanchez, it looks like he's developing his own application and is trying to use Dropbox as the source for updates to the app. He's using a share link that ends in ?dl=0 which results in a web page, not a raw file. I'm wondering if that is what is causing the error message.
I try that solution but it crashed again(fig1) is that problem is when I click the txt document's url, I cant see the VERSION number(fig2)
Community Moderator @ Dropbox
Did this post help you? If so please give it a Like below.
Did this post fix your issue/answer your question? If so please press the 'Accept as Best Answer' button to help others find it.
Still stuck? Ask me a question! (Questions asked in the community will likely receive an answer within 4 hours!)