问题描述
我已经使用Windows桌面应用程序转换器将WPF应用程序转换为商店应用程序.
I have used Windows Desktop App Converter to convert my WPF app to a store app.
除了我的从Windows开始"功能以外,所有其他功能均有效.我解决此问题的方法是在我的应用程序的"C:\ Users \ %% USER %% \ AppData \ Roaming \ Microsoft \ Windows \ Start Menu \ Programs \ Startup"目录中创建一个快捷方式,但似乎是这种方法不再起作用(快捷方式不会出现).
It all works apart from my "start with windows" feature. The way I was solving this was to create a shortcut in the "C:\Users\%%USER%%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" directory to my app but it seems like this method doesn't work any more (the shortcut doesn't appear).
那么如何使您的应用程序在Windows上启动就可以重启了?
So how does one go about getting your app to launch on windows boot any more?
干杯,迈克
推荐答案
在通用Windows平台上,创建快捷方式与经典桌面应用程序不同,请参见以下问题:
On the Universal Windows Platform, creating shortcut is a different story from the classic desktop application, see this question: How can I create a desktop shortcut for a Windows 10 Universal app using powershell?
以下讨论对此进行了讨论: UWP应用在启动时自动启动
And this discussion talked about it: UWP app start automatically at startup
在RS1中引入了一个新的WinRT API,称为Windows.ApplicationModel.FullTrustProcessLauncher
.它允许您从UWP应用程序在同一软件包中启动完全信任的应用程序,请参见此处.您可以利用此功能来创建计划任务以执行Powershell
There's a new WinRT API being introduced in RS1 called Windows.ApplicationModel.FullTrustProcessLauncher
. It allows you to launch a full-trust application within the same package from a UWP app, see here. You may utilize this feature to create a schedule task to execute a powershell
这篇关于使用Windows Desktop App Converter,可以从Windows启动吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!