Understanding App Isolation Behavior in MSIX: Issue with System State Restoration After Crash

Tamil 0 Reputation points
2024-11-29T09:48:58.8433333+00:00

We have Application built with .NET Forms, while the security components (DLLs) are developed in C++. Recently, we packaged our application using MSIX (App Isolation) and signed it with a self-signed certificate. The Application launches and functions as expected.

However, when we introduce an intentional crash (e.g., a null pointer exception), the system does not restore the changes made by the application, such as hiding the taskbar. Our understanding was that App Isolation would help revert any system modifications after a crash, but it seems this isn't the case.

Is this expected behavior for App Isolation in MSIX, or are we missing something in our configuration? Any insights on ensuring system state restoration would be appreciated.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,686 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,153 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Darran Rowe 1,046 Reputation points
    2024-11-29T10:36:44.6833333+00:00

    How does the application act when not packaged and the intentional crash happens? That is how you should expect the application to run.

    A packaged application not set to run inside an appcontainer has the same rights and almost the same environment as the application running without the package. One set to run inside an appcontainer has a lower integrity level but still almost the same environment. Understanding how packaged desktop apps run on Windows gives a description of how packaged applications run, and it does not state that an application running inside a package is unable to mutate the Windows OS state.

    The previous text ignores Windows 11 24H2's updates which changes things a little, but even that doesn't prevent mutations to the OS state.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.