Super User Asked by Teo Zec on November 29, 2021
Inside the C:Program FilesWindowsApplications
folder there are the .exe files for the Modern Apps on my PC. When I double-click on one of them, a pop-up tells me:
This application can run only in the context of an app container
Is there a way to run a Modern app directly from its .exe file, and not only by its tile?
Thank you in advance!
P.S.: I’m on Windows 10 technical preview.
You can run a Windows modern app from the command line using an explorer.exe shell command like this:
explorer.exe shell:AppsFolder<Package Name>_<Publisher ID>!<App ID>
Or, via start, which is recommended if you need to pass arguments:
start shell:AppsFolder<Package Name>_<Publisher ID>!<App ID> arg1 arg2
The trick is discovering the Package Name, Publisher ID, and App ID. It would be nice if all this info were available on the Microsoft Store listing for the app, or in Task Manager, or on the app's listing in Settings -> Apps & features. So far, I have found no easy way to collect those three pieces of information. Here are steps to do so using Task Manager and File Explorer, copied from my blog post.
Now that you've collected the three pieces of information we need, you can build the command to open the app from the command line.
Your command will look like this, replacing the portions with the three pieces of information collected above:
explorer.exe shell:AppsFolder<Package Name>_<Publisher ID>!<App ID>
Continuing with the example of the Calendar app from the Mail and Calendar package, you would enter something like this:
explorer.exe shell:AppsFoldermicrosoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.calendar
Dear Microsoft: Please make this easier!
Answered by Mark McClelland on November 29, 2021
I believe that it is possible now, at least in some way. The "Windows Scan" application for example can be turned into a shortcut using "Microsoft.WindowsScan_8wekyb3d8bbwe!App" as the target.
Answered by xaml on November 29, 2021
Prior to Windows 8, you could have "standalone" .exe applications. Installation was mainly to create links and references to make it easy for the application to find what it needed and run. If everything the application needed was provided by the application, itself, it could run without installation. The app-container is a security concept introduced with Win 8. Without installation, an application has access to its own folders and little else, including most devices. An application must be designed to work with app-containers in order to be installed. This link has a decent description of the concept and how it works.
Edit: For an installed application, it appears that all of the associations and permissions are attached to the tile, so the .exe cannot be run directly.
Answered by fixer1234 on November 29, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP