Reputation: 133
I have a WPF app exported via MSIX as a UWP app.
I want to show a changelog window once when the app gets updated. How do I do that?
Upvotes: 0
Views: 288
Reputation: 32775
How to check if UWP app was just updated?
I think you could store current app's version to LoclSetting
, when you launch the app and compare current version with LocalSetting value, if they are different, you could show a dialog and told user app has updated, then replace LocalSetting
with current version.
public static string GetAppVersion()
{
Package package = Package.Current;
PackageId packageId = package.Id;
PackageVersion version = packageId.Version;
return string.Format("{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
}
Upvotes: 1