尝试启动从 Windows 商店下载的过期试用版 UWP 应用程序时出现错误消息 -- "A device attached to the system is not functioning"

Error message when trying to start an expired trial UWP app downloaded from the Windows Store -- "A device attached to the system is not functioning"

我试图了解试用许可如何适用于我使用 Desktop Bridge 转换为 UWP 应用程序的 Win32 应用程序。该应用已作为付费应用(每份 1.99 美元)提交至 Windows 商店,并提供 1 天试用期。

所以我将它作为试用应用程序下载到我的测试 Windows 10 机器上并让它 运行 超过 24 小时 w/o 购买它。

一天后,该应用程序仍然出现在计算机上(在“开始”菜单中),但是当我尝试通过单击“开始”菜单图标再次 运行 它时,我遇到了以下错误:

A device attached to the system is not functioning.

所以我很好奇是否有办法为过期的试用应用程序提供更多 "user friendly" 消息?

编辑::找到 this page 引用:

Trial license expires before the app is launched

If the trial expires before the user launches the app, your app won't launch. Instead, users see a dialog box that gives them the option to purchase your app from the Store.

但这不是我所看到的。我刚收到上面显示的通用 Windows 启动器错误。

EDIT2:: 事情变了。根据 Stefan Wick MSFT,这是 OS 中的一个错误,已在最新的服务更新中解决。所以这个丑陋的消息不再显示了,尽管在启动过期的应用程序时仍然可能存在错误。

重现步骤如下:

1) 启动过期的 UWP 应用。现在,人们会看到这个弹出窗口,而不是丑陋的 Win32 启动器错误(我在上面显示):

This app can't open

Your trial period for this app has expired. Visit the Windows Store to purchase the full app.

[Go to the Store] link
[Close] button

抱歉,无法截取更好的屏幕截图,因为我的不再显示了。

2) 单击 "Close" 消息将关闭,应用程序将不会启动。这是预期的。

3) 单击“转到应用商店”,应用商店应用将会出现:

4) 其中的 "Launch" 按钮按预期工作,但是 ...

5) 点击 "Free trial" 按钮(这个应用的免费试用期早就过期了,这个按钮不应该出现。我的设置为 30 天。)商店应用将重新加载到这个:

6) 所以现在它显示“还剩 29 天”,这完全是假的。当我最初发布这个问题时,我首先安装了这个 UWP 应用程序副本,这超过 30 天,即这个应用程序的试用期。

7) 但是如果我点击 "Launch" 它会启动过期的应用程序,它不应该这样做。此外,它还清除了最初在上面的步骤 (1) 中显示的过期应用程序消息。所以现在如果我从“开始”菜单启动这个应用程序,它启动得很好。

我猜它仍然是一个错误,不是吗?

这是由于 OS 中的一个错误,目前已修复。

谢谢, Stefan Wick - Windows 开发者平台