问题
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