Welcome Guest [Log In] [Register]
LOM Traffic Stats
https://youtu.be/whBtH9AnKRo

Join Legends of Modding!



If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply:
[VB.net]Update Function
Topic Started: Nov 2 2015, 08:11 PM (145 Views)
The Best
Member Avatar
Your hands are just too short to box with god

1. Create a html or txt file using Text Editor and write inside that file the new version ex : 1.0.0.1 and upload it to mediafire as example.

2. Make a folder and copy new updated files and compress it as rar with the name of "new update" (you can call it whatever you like but you might get errors) then upload it

3. Use this code

Code:

Code:
 
Private Function checkupdate()
Try
Dim webB As New WebBrowser
Dim webC As New WebClient
Dim update As String = webC.DownloadString("Your Txt or html Link here")
If update = Nothing Then
Return Me
End If
If Not update.Contains(Application.ProductVersion) Then
MsgBox("A New Update was found !")
webB.Navigate("Your Uploaded files link comes here")
Me.WindowState = FormWindowState.Minimized
End If
Catch ex As Exception
MsgBox("Error occurred while updating the program", MsgBoxStyle.Information)
End Try
Return Nothing
End Function


Silly Note :D :
you have to reupload html or txt & the new files each time you will release a new update.

Important note :
Before releasing a new version please change the assembly version (exe) and then debug it once.
Edited by The Best, Nov 2 2015, 08:34 PM.
- - Quote Go To Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Enjoy forums? Start your own community for free.
« Previous Topic · Tutorials · Next Topic »
Add Reply:

Black Water created by tiptopolive of the Zetaboards Theme Zone