Auto Update application vb.net <HELP> 07-05-2011, 06:01 PM
#1
Hello good people
I have this code :
That is visual basic update but now i need source where when i click update application that he delete my program and extract new update that program downloaded or he can just replace... So i need to he updates automaticaly application and start that update.
PLEASE HELP !!!
Thanks all !!!!!
I have this code :
Code:
Private Sub CheckForUpdates()
Dim rope As String
Dim wc As New WebClient
rope = wc.DownloadString("http://mirzetaga.fileave.com/Update.txt")
If rope.Contains("1.1") Then 'Change The 1.1 To The Latest Version.
If MessageBox.Show("New update has been found, Download?", "YouTube Express; New Update!", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) = DialogResult.Yes Then
Dim sfdUpdate As New SaveFileDialog
sfdUpdate.Title = "Select Location For; Program Update."
sfdUpdate.Filter = "WinRAR archive (.rar)|*.rar" 'Easily Implementable If You Wish To Change To "Executable (.exe)|*.exe"
If sfdUpdate.ShowDialog = Windows.Forms.DialogResult.OK Then
My.Computer.Network.DownloadFile("http://mirzetaga.fileave.com/Update.rar", sfdUpdate.FileName)
If IO.File.Exists(sfdUpdate.FileName) Then
Process.Start(sfdUpdate.FileName)
End
If DialogResult.No Then
Me.ResumeLayout()
End If
End If
End If
End If
End If
Exit Sub
End SubThat is visual basic update but now i need source where when i click update application that he delete my program and extract new update that program downloaded or he can just replace... So i need to he updates automaticaly application and start that update.
PLEASE HELP !!!
Thanks all !!!!!


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


