microsoft / microsoft/WindowsAppSDK-Samples

Does anyone have a working example of using Restart API for Microsoft Store updates?

Open
#568 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1k
Forks
335
Avg merge
5d 1h
Merged PRs (30d)
8

Description

I refer to https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/AppLifecycle/Restart/cs-winui-packaged

Which is linked to from https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/applifecycle/applifecycle-restart#examples

The documentation implies that this Restart API could be used to handle software updates, but there is no full example of this being done, it seems that its actually not possible to update a running app via Microsoft Store and have the app restart itself?

Seems like an oversight.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Samples/AppLifecycle/Restart/cs-winui-packaged and the linked Microsoft Learn Restart API examples. Determine whether Microsoft Store updates can be handled by a running packaged app using this API, then document a complete working example or clarify the limitation and expected update flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.