Skip to content

Commit

Permalink
Updated Readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibpatel committed Apr 25, 2017
1 parent f917321 commit 76e0a98
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
10 changes: 7 additions & 3 deletions AutoUpdaterTest/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion ZipExtractor/ZipExtractor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>AutoUpdater.NET.pfx</AssemblyOriginatorKeyFile>
Expand Down

0 comments on commit 76e0a98

Please sign in to comment.