在哪里链接 UWP 磁贴? [英] Where linked UWP tile?

查看:25
本文介绍了在哪里链接 UWP 磁贴?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 Windows 开始菜单的项目永远是链接文件.

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

ProgramData\Microsoft\Windows\Start Menu 

链接文件存在.

但 UWP 磁贴应用不是.

But UWP tile app is not.

该应用的可执行文件链接在哪里?

Where is linked that app's executable file?

几乎是瓷砖

Program Files\WindowsApps

但不是全部.而且我无法正常访问此文件夹.

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

我可以在像 C++ 一样的程序代码中链接这个文件信息吗?

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

此外,Windows 8 的 Metro 应用程序也...

Additionally Windows 8's Metro App also...

推荐答案

您可能有桌面应用开发经验,但使用指向文件的快捷方式链接到应用并不是 UWP 开发中的正确方向.

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.

并且你发现UWP应用的安装在隐藏文件夹Program Files\WindowsApps"中,但是如果你将安装的应用的.exe文件发送到DeskTop(创建快捷方式)并双击该快捷方式,则会出现以下错误显示:

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.

所以:

我可以在像 C++ 一样的程序代码中链接这个文件信息吗?

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

答案是否定的.但是如果你需要从你的代码中启动一个 UWP 应用,你可以参考 启动 URI 的默认应用.

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.

这篇关于在哪里链接 UWP 磁贴?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆