UWP 应用在启动时自动启动 [英] UWP app start automatically at startup

查看:57
本文介绍了UWP 应用在启动时自动启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切都在标题中,我目前正在寻找一种方法来在 Windows 启动时自动使用 UWP 框架启动我的 UWP 应用程序,无需在机器上操作文件.应用程序必须能够在应用商店共享并在 Windows 启动时打开.

All is in the title, I currently searching a way to launch my UWP app automatically at Windows startup with the UWP framework only, no file manipulation on the machine. The application must be able to be shared on the Store AND open when Windows starts.

这是可行的事情吗?如果是这样怎么办?

Is it a feasible thing? If so how?

谢谢!

推荐答案

看来 MS 会添加这个功能——windows.startupTask——不仅适用于转换后的桌面应用,也适用于 UWP 应用.

It seems that MS will add this feature - windows.startupTask - not only for converted desktop apps, but also UWP apps.

您可以从大约 37:00 开始看到它提示、技巧和秘密:为 PC 构建出色的 UWP 应用

You can see it from about 37:00 Tip, tricks, and secrets: Building a great UWP app for PC

但是这个功能还没有准备好 - 它会在 Windows 10 Fall Creators Update 中提供.(我已经尝试过 SDK 16225 但还没有准备好)

But this feature is not ready yet - It'll be available with Windows 10 Fall Creators Update.(I've tried with SDK 16225 but not ready yet)

于 2017 年 12 月 18 日添加 - 您可以使用 Win10 Fall Creators Update 来完成.以下帖子显示了详细信息.

Added 12/18/2017 - You can do it with Win10 Fall Creators Update.Following post show the details.

配置您的应用以在登录时启动(Windows 博客)

一个考虑点是:通过该功能,您可以启动"应用程序 - 不显示应用程序窗口.要查看应用程序窗口,用户应单击任务栏中的应用程序任务.这对我来说是一个有点荒谬的实现.从客户的角度来看,点击开始"和点击激活"是相同的行为.您可以在用户激活应用之前在后台执行一些任务,但这是另一回事.

One consideration point is: By the feature, you can just 'start' the app - the app window is not shown. To see the app window, the user should click the app task at the task bar. It's a slightly ridiculous implementation for me. From the view of customer, 'click to start' and 'click to activate' is same behavior. You can do the some task in background before the user activate the app, but this is an another story.

这篇关于UWP 应用在启动时自动启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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