Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UWP app start automatically at startup

Tags:

c#

startup

uwp

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?

Thank you!

like image 508
scbj Avatar asked Mar 11 '16 12:03

scbj


2 Answers

@hsmiths wrote easist solution to start app automatically and I'd like to summarize in step by step.

  1. Open File Explorer
  2. In address bar, copy-and-paste shell:AppsFolder
  3. Right-click the app and then click Create Shorcut.
  4. The message box asks to create shorcut on the Desktop. Click Yes.
  5. In File Explorer address bar, copy-and-paste shell:startup
  6. Go to Desktop and copy-and-paste shorcut to File Explorer.
  7. Reboot your computer if you want to test.

+Tip: if you want to by-pass login dialog on Windows startup.

  1. Start > Run
  2. type control userpasswords2
  3. User Accounts window will be opened. Uncheck Users must enter a user name ...
  4. When you click OK, you will be asked to enter account password. Type password.
  5. Reboot your computer if you want to test.
like image 112
Youngjae Avatar answered Oct 03 '22 03:10

Youngjae


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

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

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)

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

Configure your app to start at log-in (Windows Blog)

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.

like image 27
Mamoru Satoh Avatar answered Oct 03 '22 04:10

Mamoru Satoh