关于桌面应用程序 Windows App (Metro) Tiles/Icons 的问题

Questions about Windows App (Metro) Tiles/Icons for desktop applications

我有一个用 VB.NET 编写的应用程序,我想移动到 Win10。它将始终是一个桌面应用程序,但我希望它在 Win 10 中有一个开始图标/磁贴。环顾四周 I found this exact question which suggests to create a Metro App (now I believe called Windows App) which launches the desktop app. This is also discussed in this thread. 所以问题;

  1. 这些线程有点旧是在 Win10 中通过使用 Windows 应用程序作为桌面启动器为桌面应用程序提供 Windows 应用程序磁贴的最佳方式应用?

  2. 看来在 Win10 中,微软现在允许在更新安全 > SideloadApps 中安装非商店应用程序。这需要启用才能安装应用程序,但是否需要始终启用。例如,如果用户将其关闭,安装后会发生什么情况,应用程序会不会启动? 例如,我看到 in this link that there are 2 Registry keys to change,基本上是 AllowAllTrustedApps 和 AllowDevelopmentWithoutDevLicense。我的桌面安装程序是否可以更改这些密钥,安装 Windows 应用程序(以及其他所有内容)然后再次更改密钥?

  3. 正在卸载?如果我创建了一个只启动我的桌面应用程序的 Windows 应用程序,那么用户可能会卸载或删除 Windows 应用程序,这意味着我的桌面应用程序将被孤立和丢失。有什么解决这个问题的建议吗?

根据你的描述,我想你需要的是Desktop Bridge。无需使用 Windows 应用程序作为桌面应用程序的启动器。

您可以尝试使用 Desktop App Converter,这样您就可以将为 .NET 4.6.1 或 Win32 编写的现有桌面应用程序带到通用 Windows 平台 (UWP)。

并且在转换后,您可以自动替换 Desktop App Converter (DAC) 生成的资源以提供自定义 Tiles/Icons。更多可以参考Manually convert your app to UWP using the Desktop Bridge.