|
-
Jul 25th, 2010, 06:10 PM
#1
Thread Starter
Fanatic Member
AKLib.SimpleUpdater
AKLib.SimpleUpdater
A simple way to let your application install updates
Written in Visual Studio 2010
Edit: Changed the attachments to Zip
Instructions:
- Download, extract and build the two attachments
.
- Add a reference to AKLib from your designer
.
- Copy SimpleUpdater.exe to your applications directory
.
- Create a file called 'current.txt'
- Layout of the file should be like this:
Legend: The file that you want to update,current version,the folder where you want to download the update
myApplication.exe, 1.0.0.0, C:\MyApplication
myDll.dll, 1.0.0.0, C:\MyApplication
etc...
- Copy 'current.txt' to your applications directory
.
- Create a file called 'recent.txt'
- Layout of the file should be like this:
Legend: File on update server,newest version,the url to the file
myApplication.exe, 2.0.0.0, http://www.myserver.com/updates/myApplication.upd
myDll.dll, 1.1.0.0, http://www.myserver.com/updates/myDll.upd
etc...
- Upload 'recent.txt' to your site
.
- Usage:
- From a Button.Click event:
vb Code:
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Me.btnUpdate.Enabled = False Dim currentVersions As String = "C:\MyApplication\current.txt" Dim recentVersions As String = "http://www.mySite.com/recent.txt" Dim pathSimpleUpdater As String = "C:\MyApplication\SimpleUpdater.exe" AKLib.SimpleUpdater.FromDefinedList(currentVersions, recentVersions, pathSimpleUpdater) End Sub
.
- Credits to:
.
- Disclaimer: There is basicly no error handling in this code, and I have only tested it on one computer, so is to be used at your own risk

Last edited by Arve K.; Aug 3rd, 2010 at 07:29 AM.
Reason: Added zip instead of rar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|