Is there a possibility to start another App or Program from a Windows 8 Store App (C#)

安稳与你 提交于 2019-11-27 16:16:59

It is not possible to just launch an arbitrary application, but with custom protocol activation you can launch an app that handles that protocol and if it is not installed - the OS will ask the user to install it. It means that if you can define a custom protocol in your app - you can launch it from another app with this protocol assuming no other app registers to handle it. An example of that is any XBOX Live app - if you check their manifest files - they all handle custom protocols.

If your specific question is about launching a specific app by name or location then no, this is not possible, but if you know a protocol handled by the app you want to launch - you can try using that - just bear in mind that there might be other apps that handle that protocol.

Short answer: no, it's not possible.

You can open files with their associated application but not spawn any arbitrary external process.

As @mitch-wheat pointed out, that's why it's called a sandbox.

Manvik

Check out this sample

The sample is for Windows 8.1 but I think will work for Windows 8 as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!