Check registry key?

Oct 18, 2014 at 8:22 AM
Hi
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(),
                        CultureInfo.CreateSpecificCulture("en-US"));

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

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