Tutorials Navigation
{Tut} How to Make An Auto Updater - VB
Tutorial Name: {Tut} How to Make An Auto Updater - VB
Category: PC Tutorials
Submitted By: Sega
Date Added:
Comments: 0
Views: 3,378
Related Forum: PC Building Forum
Share:
Hello,
This is not the best auto updater but it gets the job done
Step 1:
Just Add A Text Box Anywhere
Step 2:
Double Click the Form and add this code about Public Class (name of form)
Imports System.IO
Imports System.Xml
Imports System.Net
Step 3:
Add This Code under form load
If getXMLValue(TextBox1.Text, "latestVersion") = "2.7.0.0" Then 'Change 2.7.0.0 to the assembly version of your app'
MsgBox("No Update Found", MsgBoxStyle.Information, "No Update")
Return
Else
If MessageBox.Show("Update found! Would you like to download?", "Update Found", MessageBoxButtons.YesNo) = DialogResult.Yes Then
Dim wc As New WebClient()
wc.DownloadFile("http://yoursitehere.com/nameofapp.exe", "Name of App" )
End If
End If
Return
End Sub
Private Function getXMLValue(ByVal update As String, ByVal setting As String) As String
Dim xmlr As XmlReader = XmlReader.Create("http://www.yoursitehere.com/version.xml")
xmlr.Read()
xmlr.ReadToFollowing(setting)
Dim value As String = xmlr.ReadString()
xmlr.Close()
Return value
End Function
Step 4:
Go to x10hosting.com and sign up for a hosting account.
Then, login into cPanel and go to File Manager.
Then, click upload and upload the NEWEST .exe of your app.
Step 5 (Making the XML File):
Open a new notepad file and add this code to it:
<?xml version="1.0" encoding="UTF-8"?>
<checkForUpdate>
<latestVersion>1.0.0.0</latestVersion>
</checkForUpdate>
The version number doesn't matter. Now go to file>>>>save as... and make sure you have all files selected and name it version.xml
Step 5:
Upload the version.xml file to x10hosting
Your DONE!
MUST READ!
Now in visual basics go to your apps properties>>>Assembly Information>> and change Assembly Version and File Version to a NEW version. So if your old one was version 2.6.0.0 you MUST CHANGE THIS TO 2.7.0.0 and so on FOR THE AUTO UPDATER TO WORK!
Now each time you want to update your app you MUST change the assembly information to the LATEST version. For example the assembly I used the version number was 2.7.0.0 so that was the latest version. EVERYTIME you want to release a new version you MUST change the version number.
Now when you want to make an update you have to change the .xml file to the NEWEST version number. Do this by going into cPanel>>>File Manager>>right click version.xml>>>code edit>>> then just change the to the NEWEST version of your app!
Also, you must also upload the NEWEST version of your app.exe
Any questions or comments just post
Source: [ Register or Signin to view external links. ] Mets08123's Auto Updater.zip
Ratings
Comments
Related Tutorials
- 01. Emulating Xbox 360 on PC for Running COD4 With Mods(3,502)
- 02. How to: Matrix Numbers | Batch File(1,908)
- 03. How to Password Protect Files on Windows(859)
- 04. How to play Socom 2/3/ and Combined Assault on PC(6,738)
- 05. Modern Warfare 2 Vac Ban Bypass Tutorial(6,154)
- 06. How to embed an image on TheTechGame(3,100)
- 07. [PC] NIOH 2 OTHER USER SAVE RESIGN(13,007)
- 08. Host bot lobbies! Full Tutorial!(11,311)
- 09. Unban yourself [Plutonium BO2](14,247)
- 10. Fall Guys - How to Change Your Name Color on Fall Guys(8,390)
- 11. Best Crosshair Settings for Valorant(6,530)
- 12. Othercide The Surgeon Boss Guide(2,544)
- 13. Othercide Remembrances Unlock Guide(4,470)
- 14. Othercide Beginners Tips and Tricks(2,712)
- 15. How to Fix Grounded Crashes, Loading Time, Low FPS and Other(4,848)
"{Tut} How to Make An Auto Updater - VB" :: Login/Create an Account :: 0 comments