private void ShowVersion() { Assembly assembly = Assembly.GetExecutingAssembly(); LblVersion.Content = assembly.GetName().Version.ToString(); var registredVersion = RegistryUtil.GetRegistryKeyValue(baseRegKey + @"Clients\{" + appGUID + @"}", "pv"); if (registredVersion.CompareTo(LblVersion.Content) != 0) { appState.NewVersionInstalled = true; } }