Porting UWP UpdateTask to a Windows App SDK 1.0.0 / WinUI desktop app (packaged, wap) #2314
Unanswered
JosHuybrighs
asked this question in
Q&A
Replies: 1 comment 2 replies
-
How's this? Run a background task when your UWP app is updated NOTE: Replace "UWP app" in that title with "package". When a package is updated for a user the package's You don't install "apps". You install "packages". Packages are the unit of distribution and deployment. Packages can contain applications (among other things). Technically you don't install apps, you install packages. That's all sophistry to an average user of course, but for developers things make more sense when not overly simplified :-) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am porting a UWP/Desktop-Bridge app to WinUI 3 desktop (packaged using a wap project) and have problems adding a
windows.updateTask
to the new environment. I am not sure in how far Windows App SDK 1.0.0 supports updateTask but the reason I want to have this is that the updateTask would automatically execute some migration code at the moment the old 'uwp' app is updated to the winUI desktop version (before the user would launch the new version).The issue I have is that I don't know how to create the updateTask project. I read various documents about this and what I found out is that the updateTask must be a OOP background task, that it needs a Windows Runtime Component (which isn't available in VS22 for C#), and that I probably also need a hosting process, which is also unclear for me how to create that one.
Any hints on how to do this is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions