Name | Modified | Size | Downloads / Week |
---|---|---|---|
updatesharp_12062015_source.zip | 2015-06-12 | 567.3 kB | |
readme.txt | 2015-06-12 | 2.1 kB | |
Totals: 2 Items | 569.5 kB | 0 |
Thanks for downloading UpdateSharp! Please read this before you get started. -- Usage -- UpdateSharp is very easy to use. Follow these steps and it will work. 1a) Add UpdateSharp.csproj to your solution. 1b) Add the lines: using UpdateSharpLib; using System.Diagnostics; using System.Net; 1c) Add the following to somewhere in your application (preferably a load event): WebClient wc = new WebClient(); string ver = wc.DownloadString("yourupdateurlhere"); if (LoadVersion() != ver) { // tell user update is available } 2a) Open Updater.cs (UpdateSharp.csproj) and find the following lines: private string FileName = "app.exe"; private string ApplicationDataFolder = "ApplicationFolder"; private string ApplicationName = "Application Name"; private string UpdateURI = "someurl/latest.zip"; private string VersionURI = "someurl/version.txt"; 2b) Edit each string with the relevant data to your Application. The comments will help you with this. 3) Go back to your main code file (Main.cs or Form1.cs). 4) Insert this code into the event that you want to launch the updater (button click?): Process.Start("updatesharp.exe"); 5) Enjoy a working updater. Hopefully this worked for you, if it didn't, check out a more advanced tutorial at http://silentreverb.uk/updatesharp/setup.html and follow that. -- Version URLs -- They should literally be one file that echos/prints a version string. One line! <?php echo "ver"; ?> -- Troubleshooting -- If something has gone wrong, check all of this is correct for you: 1) Is there a reference to UpdateSharp.csproj? 2) Have you added the code from step 4? 3) Have you edited all the settings from step 2a? 4) Have you asked a developer? 5) Is updatesharp.exe in the same directory as your application EXE? If all of that still doesn't fix it then, well, I don't know to be honest. Skype me. -- Final Note -- I hope you enjoy this little app. I probably won't update it, there's not much else I can do. You can find the license in LICENSE.TXT. UpdateSharp & UpdateSharpLib Copyright Morgan Lane 2015.