Search code examples
c#wpfuwpdesktop-bridgedesktop-app-converter

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


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


Solution

  • 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