Using Windows Desktop App Converter, Is it possible to start with Windows?

别来无恙 提交于 2019-12-24 08:23:05

问题


I have used Windows Desktop App Converter to convert my WPF app to a store app.

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).

So how does one go about getting your app to launch on windows boot any more?

Cheers, Mike


回答1:


So how does one go about getting your app to launch on windows boot any more?

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?

And this discussion talked about it: UWP app start automatically at startup

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




回答2:


you can use the windows.startupTask extension to start an executable in your package when users log in. Here's the relevant topic section - https://docs.microsoft.com/windows/uwp/porting/desktop-to-uwp-extensions#executable.



来源:https://stackoverflow.com/questions/39949781/using-windows-desktop-app-converter-is-it-possible-to-start-with-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!