Migrating desktop applications to MS Store (10) - running in Windows S Mode

First, a brief Windows 10 S Mode, Windows in this mode, only run MS Store in the software can not be installed by other means. Benefits are safe and secure, to eliminate all domestic rogue software. Like iOS, APP into the store they are subject to review, while the APP in the sandbox environment, running as normal user, not a sneaky way to do bad things, to seize the resources of situation does not occur naturally experience smooth system performance. Everything is so beautiful, but Windows S Mode is no one with ......

This tragedy is really hard to say, perhaps the user habits, perhaps contrary to human nature, and violation of the vendor (for review, to be divided) and the interests of users (a lot of software, games can not be installed, D version of the software not to think). Taking into account the MS Store itself is less abundant APP, hey mom I do not want to go with ...... S Mode

But you want to do, is have had a soft phone, as well as XBOX can run UWP APP's (getting more and more angry). Now is miserable miserable point, but Paul allowed October 2 and jumping out what wonderful devices, ARM can only UWP, or low-power devices can only MS Store, then adjourned to one second ...... there are transmission folding device, Windows Core OS and so on, so make sure APP can run under a Windows 10 S Mode, so perhaps there is a sense Diudiu (washing force) ......

Because the theme of this series is a desktop program to migrate MS Store, but this can be pure UWP in S Mode operation, so this article, we want to discuss is by APPX With Desktop Extension manner, the existing desktop program in S Mode run.

Next, we tested how it is in the S Mode, because not just packaged into APPX desktop bridge by the way, you are sure to succeed in S Mode operation.

In addition to a special get a Windows 10 S Mode to test the machines, according to official documents, we can also be simulated in Window 10 Pro S Mode by configuration.

https://docs.microsoft.com/zh-cn/windows/msix/desktop/desktop-to-uwp-test-windows-s

Document describes the audit mode (Audit mode policy), mode of production (Production mode policy) and self-signed production model (Product mode policy with self-signed apps). The latter two are really put your Windows 10 Pro is set to S Mode, so we look at the audit mode, the audit policy file link to download the pattern on the document SiPolicy_Audit.p7b, rename SIPolicy, then paste it into C: \ Windows \ System32 \ CodeIntegrity \, reboot the system.

When finished, you can test the APP will be run in the S Mode, and then go in Event Viewer to see if there is an error message.

 

In the next chart you can see, the system considers Firefox.exe does not meet the requirements of Mode S, but because it is in audit mode, so allowed to load.

 

I am ready for the next big muffled dead, the past SiPolicy_Enforced.p7b copy application mode of production. After updating the file name and restart, I tried to click on - "Migration Store desktop program to MS (9) APPX With Desktop Extension" DotNetConsoleApp.exe included, brutally refused to implement the system.

 If we download AppxWithDesktopExSample1 contain DotNetConsoleApp.exe from the store, then you can run smoothly.

The figure below you can see the window title Console pointed out the absolute path of DotNetConsoleApp.exe.

This article, we simply introduced the Windows 10 S Mode, and discusses how to test a state run APP in S Mode. We will try to follow how the S Mode requires administrator privileges.

GitHub Address:

https://github.com/manupstairs/AppxWithDesktopExtension

MS Store:

https://www.microsoft.com/store/productid/9N22D8RLKZN2

 

Guess you like

Origin www.cnblogs.com/manupstairs/p/11454526.html