03-19-2013, 11:12 AM
Hello,
I watched all the brandonio's video tutorials on youtube..
I worked according to his video tutorials....
Now at one stage I got a problem here...I made an updater for my software using UpdateVB component and wants to get the version.txt links and SFX download link from the database...I tried something but it doesn't work....
What have I tried:
[code2=vbnet]Imports MySql.Data.MySqlClient
Public Class updater
Public conn As MySqlConnection
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
conn = New MySqlConnection(ServerString)
Try
conn.Open()
Dim sqlquery As String = "SELECT vlink, dlink, ftpu, dtpp FROM updater"
Dim data As MySqlDataReader
Dim adapter As New MySqlDataAdapter
Dim command As New MySqlCommand
command.CommandText = sqlquery
command.Connection = conn
adapter.SelectCommand = command
data = command.ExecuteReader
While data.Read()
If data.HasRows() Then
Dim vlink As String = data(1).ToString
Dim dlink As String = data(2).ToString
Dim ftpu As String = data(3).ToString
Dim ftpp As String = data(4).ToString
End If
End While
UpdateVB1.checkforupdate("vlink", "0.0.9", "dlink", "ftpu", "ftpp", showUI:=True)
data.Close()
conn.Close()
Catch ex As Exception
End Try
End Sub
End Class[/code2]
but by my codes the updater didn't response at all and I also get no error...
Please help me how can I do this or by which codes I can solve my problem...I am a beginner in vb.net..
Please help me...
Thanks in advance.....
I watched all the brandonio's video tutorials on youtube..
I worked according to his video tutorials....
Now at one stage I got a problem here...I made an updater for my software using UpdateVB component and wants to get the version.txt links and SFX download link from the database...I tried something but it doesn't work....
What have I tried:
[code2=vbnet]Imports MySql.Data.MySqlClient
Public Class updater
Public conn As MySqlConnection
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
conn = New MySqlConnection(ServerString)
Try
conn.Open()
Dim sqlquery As String = "SELECT vlink, dlink, ftpu, dtpp FROM updater"
Dim data As MySqlDataReader
Dim adapter As New MySqlDataAdapter
Dim command As New MySqlCommand
command.CommandText = sqlquery
command.Connection = conn
adapter.SelectCommand = command
data = command.ExecuteReader
While data.Read()
If data.HasRows() Then
Dim vlink As String = data(1).ToString
Dim dlink As String = data(2).ToString
Dim ftpu As String = data(3).ToString
Dim ftpp As String = data(4).ToString
End If
End While
UpdateVB1.checkforupdate("vlink", "0.0.9", "dlink", "ftpu", "ftpp", showUI:=True)
data.Close()
conn.Close()
Catch ex As Exception
End Try
End Sub
End Class[/code2]
but by my codes the updater didn't response at all and I also get no error...
Please help me how can I do this or by which codes I can solve my problem...I am a beginner in vb.net..
Please help me...
Thanks in advance.....