Skip to content

Commit

Permalink
Improved comments on test application.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravibpatel committed Apr 28, 2023
1 parent 02662bb commit 9632536
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions AutoUpdaterTest/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ private void ButtonCheckForUpdate_Click(object sender, RoutedEventArgs e)
// };
// AutoUpdater.Start("https://rbsoft.org/updates/AutoUpdaterTest.json");

// Uncomment following line to run update process using non administrator account.
// Uncomment following line to run update process without admin privileges.
// AutoUpdater.RunUpdateAsAdmin = false;

// Uncomment following line if you want to open download page instead of downloading update file when user click on download button.
// AutoUpdater.OpenDownloadPage = true;

// Uncomment following lines if you don't want user to select remind later time in AutoUpdater notification window..
// Uncomment following lines if you don't want user to select remind later time in AutoUpdater notification window.
// AutoUpdater.LetUserSelectRemindLater = false;
// AutoUpdater.RemindLaterTimeSpan = RemindLaterFormat.Days;
// AutoUpdater.RemindLaterAt = 2;
Expand All @@ -72,18 +72,18 @@ private void ButtonCheckForUpdate_Click(object sender, RoutedEventArgs e)
// Uncomment following line to show custom application title in AutoUpdater notification window.
// AutoUpdater.AppTitle = "My Custom Application Title";

// Uncomment following link if you want to show errors.
// Uncomment following line if you want to show errors.
// AutoUpdater.ReportErrors = true;

// Uncomment following lines if you want to handle how your application will exit when application finishes downloading.
// Uncomment following lines if you want to handle how your application will exit when application finishes downloading the update.
// AutoUpdater.ApplicationExitEvent += () =>
// {
// Title = @"Closing application...";
// Thread.Sleep(5000);
// Application.Current.Shutdown();
// };

// Uncomment following line to handle update logic yourself.
// Uncomment following lines to handle update logic yourself.
// AutoUpdater.CheckForUpdateEvent += args =>
// {
// switch (args.Error)
Expand Down Expand Up @@ -168,11 +168,11 @@ private void ButtonCheckForUpdate_Click(object sender, RoutedEventArgs e)
// Uncomment following line if you your XML file can only be accessed through FTP.
// AutoUpdater.Start("ftp://rbsoft.org/updates/AutoUpdaterTest.xml", new NetworkCredential("FtpUserName", "FtpPassword"));

// Uncomment following lines if you want to persist Remind Later and Skip values in a json file.
// Uncomment following lines if you want to persist Remind Later and Skip values in a json file instead of registry.
// string jsonPath = Path.Combine(Environment.CurrentDirectory, "settings.json");
// AutoUpdater.PersistenceProvider = new JsonFilePersistenceProvider(jsonPath);

// Uncomment following line if you want to change the update zip extraction path. This only works when you use zip file as an update file.
// Uncomment following lines if you want to change the update zip extraction path. This only works when you use zip file as an update file.
// var currentDirectory = new DirectoryInfo(Environment.CurrentDirectory);
// if (currentDirectory.Parent != null)
// {
Expand All @@ -188,7 +188,7 @@ private void ButtonCheckForUpdate_Click(object sender, RoutedEventArgs e)
// Uncomment following line if you want to clear application directory before update zip is extracted. This only works when you use zip file as an update file.
// AutoUpdater.ClearAppDirectory = true;

// Uncomment following line if your don't want to execute different executable after the update. This only works when you use zip file as an update file.
// Uncomment following line if you want to execute different executable after the update. This only works when you use zip file as an update file.
AutoUpdater.ExecutablePath = "bin/AutoUpdaterTest.exe";

AutoUpdater.Start("https://rbsoft.org/updates/AutoUpdaterTest.xml");
Expand Down

0 comments on commit 9632536

Please sign in to comment.