You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to implement upgrading and encountered an unusual issue with IsUpgradingInstalledVersion() within the UIInitialized and UILoaded events.
The problem lies in the fact that this method relies on three conditions including session.Property("FOUNDPREVIOUSVERSION").IsNotEmpty(), however at this point, the property hasn't been set yet.
LookupInstalledVersion() returns correct value of the installed version of the app though, so my question is: can this be used reliably within these events to detect upgrading?
Additionally, could the logic in IsUpgradingInstalledVersion() be updated to something more like this?:
Hi, I'm trying to implement upgrading and encountered an unusual issue with
IsUpgradingInstalledVersion()
within theUIInitialized
andUILoaded
events.The problem lies in the fact that this method relies on three conditions including
session.Property("FOUNDPREVIOUSVERSION").IsNotEmpty()
, however at this point, the property hasn't been set yet.LookupInstalledVersion()
returns correct value of the installed version of the app though, so my question is: can this be used reliably within these events to detect upgrading?Additionally, could the logic in
IsUpgradingInstalledVersion()
be updated to something more like this?:As far as I can tell that should work the same way for the current use case but also work correctly inside these two events.
Anyway, thanks for amazing work!
Edit: As far as I can tell the same situation is true when using this property inside view model of WPF dialog.
The text was updated successfully, but these errors were encountered: