From 76e0a9822aab056505f2b87bfd244b0dbe861efd Mon Sep 17 00:00:00 2001 From: Ravi Patel Date: Tue, 25 Apr 2017 15:00:34 -0700 Subject: [PATCH] Updated Readme file. --- AutoUpdaterTest/FormMain.cs | 10 +++++++--- README.md | 10 +++++++++- ZipExtractor/ZipExtractor.csproj | 2 +- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/AutoUpdaterTest/FormMain.cs b/AutoUpdaterTest/FormMain.cs index 71c2f584..433b403a 100644 --- a/AutoUpdaterTest/FormMain.cs +++ b/AutoUpdaterTest/FormMain.cs @@ -18,11 +18,11 @@ public FormMain() private void FormMain_Load(object sender, EventArgs e) { //Uncomment below line to see russian version - + //AutoUpdater.CurrentCulture = CultureInfo.CreateSpecificCulture("ru"); //If you want to open download page when user click on download button uncomment below line. - + //AutoUpdater.OpenDownloadPage = true; //Don't want user to select remind later time in AutoUpdater notification window then uncomment 3 lines below so default remind later time will be set to 2 days. @@ -31,11 +31,15 @@ private void FormMain_Load(object sender, EventArgs e) //AutoUpdater.RemindLaterTimeSpan = RemindLaterFormat.Days; //AutoUpdater.RemindLaterAt = 2; + //Don't want to show Skip button then uncomment below line. + + //AutoUpdater.ShowSkipButton = false; + //Want to handle update logic yourself then uncomment below line. //AutoUpdater.CheckForUpdateEvent += AutoUpdaterOnCheckForUpdateEvent; - //AutoUpdater.Start("http://localhost/download/AutoUpdaterTest.xml"); + //AutoUpdater.Start("http://rbsoft.org/updates/AutoUpdaterTest.xml"); } private void AutoUpdaterOnCheckForUpdateEvent(UpdateInfoEventArgs args) diff --git a/README.md b/README.md index e7a3acef..b6369831 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ using AutoUpdaterDotNET; Now you just need to add following line to your main form constructor or in Form_Load event. You can add this line anywhere you like. If you don't like to check for update when application starts then you can create a Check for update button and add this line to Button_Click event. ````csharp -AutoUpdater.Start("http://localhost/download/AutoUpdaterTest.xml"); +AutoUpdater.Start("http://rbsoft.org/updates/AutoUpdaterTest.xml"); ```` Start method of AutoUpdater class takes URL of the XML file you uploaded to server as a parameter. @@ -56,6 +56,14 @@ AutoUpdater.CurrentCulture = CultureInfo.CreateSpecificCulture("ru"); In above example AutoUpdater.NET will show update dialog in russian language. +### Disable Skip Button + +If you don't want to show Skip button on Update form then just add following line with above code. + +````csharp +AutoUpdater.ShowSkipButton = false; +```` + ### Open Download Page If you don't want to download the latest version of the application and just want to open the URL between url tags of your XML file then you need to add following line with above code. diff --git a/ZipExtractor/ZipExtractor.csproj b/ZipExtractor/ZipExtractor.csproj index 69113bbb..f21c7f11 100644 --- a/ZipExtractor/ZipExtractor.csproj +++ b/ZipExtractor/ZipExtractor.csproj @@ -46,7 +46,7 @@ 4 - true + false AutoUpdater.NET.pfx