Where linked UWP tile?

拜拜、爱过 提交于 2019-12-12 03:48:05

问题


I know that Windows start menu's item is link file ever.

In

ProgramData\Microsoft\Windows\Start Menu 

linked file exist.

But UWP tile app is not.

Where is linked that app's executable file?

Almost tile is

Program Files\WindowsApps

but not all. And I can't access this folder normally.

Can I get this file info linked in program code like C++?

Additionally Windows 8's Metro App also...


回答1:


You may have desktop app dev experience, but link to the app using Shortcut pointed to a file is not the right direction in UWP dev.

And you found that the installation of UWP apps are in the hide folder "Program Files\WindowsApps", but if you send a installed app's .exe file to DeskTop (create shortcut) and double click this shortcut, the following error will be shown:

This application can only run in the context of an app container.

So:

Can I get this file info linked in program code like C++?

The answer is no. But if you need to launch an UWP app from your code, you can refer to Launch the default app for a URI.



来源:https://stackoverflow.com/questions/38005912/where-linked-uwp-tile

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