This project has moved and is read-only. For the latest updates, please go here.

Check registry key?

Oct 18, 2014 at 9:22 AM
what about registry?
 RegistryLocation = !string.IsNullOrEmpty(appCompany)
                ? string.Format(@"Software\{0}\{1}\AutoUpdater", appCompany, AppTitle)
                : string.Format(@"Software\{0}\AutoUpdater", AppTitle);

            RegistryKey updateKey = Registry.CurrentUser.OpenSubKey(RegistryLocation);

            if (updateKey != null)
                object remindLaterTime = updateKey.GetValue("remindlater");

                if (remindLaterTime != null)
                    DateTime remindLater = Convert.ToDateTime(remindLaterTime.ToString(),

                    int compareResult = DateTime.Compare(DateTime.Now, remindLater);

                    if (compareResult < 0)
                        var updateForm = new UpdateForm(true);
"updatekey" always is null.
how can i update registry for last update?
thanks in advanced
sorry for my bad english
Oct 19, 2014 at 5:57 AM
UpdateKey is used to store remind later time. So if you don't click on it stays null.
Oct 19, 2014 at 6:51 AM
So how to increament "version" of update and existing application?
Oct 26, 2014 at 4:04 AM
Just update the Assembly Version from Project Properties.