private void TryDisplayReleaseNotesIfNecessary() { var versionProvider = new VersionProvider(this); Version formerlyInstalledVersion = versionProvider.FormerlyInstalledVersion; Version currentVersion = versionProvider.CurrentVersion; versionProvider.UpdateLastVersion(); if (formerlyInstalledVersion == null || formerlyInstalledVersion < currentVersion) { var creator = new ReleaseNotesCreator(formerlyInstalledVersion, currentVersion); DisplayReleaseNotes(creator.CreateHtml()); } }
private void DisplayReleaseNotesIfNecessaryProc() { var versionProvider = new VersionProvider(this); Version formerlyInstalledVersion = versionProvider.FormerlyInstalledVersion; Version currentVersion = versionProvider.CurrentVersion; versionProvider.UpdateLastVersion(); if ((_generalOptions.ShowReleaseNotes || History.ForceShowReleaseNotes(formerlyInstalledVersion)) && (formerlyInstalledVersion == null || formerlyInstalledVersion < currentVersion)) { var creator = new ReleaseNotesCreator(formerlyInstalledVersion, currentVersion, Donations.IsPreDonationsVersion(formerlyInstalledVersion)); DisplayReleaseNotes(creator.CreateHtml()); } }
private void DisplayReleaseNotesIfNecessaryProc() { var versionProvider = new VersionProvider(this); Version formerlyInstalledVersion = versionProvider.FormerlyInstalledVersion; Version currentVersion = versionProvider.CurrentVersion; versionProvider.UpdateLastVersion(); if (!_generalOptions.ShowReleaseNotes || (formerlyInstalledVersion != null && formerlyInstalledVersion >= currentVersion)) { return; } var creator = new ReleaseNotesCreator(formerlyInstalledVersion, currentVersion); DisplayReleaseNotes(creator.CreateHtml()); }