UWP application starts automatically at startup

Everything is in the title, I am currently looking for a way to launch my UWP application automatically when Windows starts only with a UWP card, without processing files on the computer. The application must be accessible to access the Store and open when Windows starts.

Is it possible? If so, how?

Thanks!

+6
source share
6 answers

I think this is not possible, but perhaps you can use a trigger to activate the background task when something happens. Here is a list of available triggers:

  • Systemtrigger
  • MaintenanceTrigger
  • Timetrigger
  • PushNotificationTrigger
  • NetworkOperatorNotificationTrigger
  • NetworkOperatorHotspotAuthenticationTrigger

However, you have some kind of limitation .. take a look here: http://blogs.msdn.com/b/windowsappdev/archive/2012/05/24/being-productive-in-the-background-background-tasks.aspx

+1
source

@hsmiths wrote a simplified solution to automatically launch the application, and I would like to summarize it step by step.

  • Open explorer
  • In the address bar, copy and paste shell:AppsFolder
  • Right-click and select Create Shorcut .
  • A message box suggests creating a shorcut on the desktop. Click Yes .
  • In the address bar of Explorer, copy and paste shell:startup
  • Go to the desktop and copy and paste the shorcut into Explorer.
  • Restart your computer if you want to check.

+ Tip: if you want to go to the login dialog box at Windows startup.

  • Start> Run
  • type control userpasswords2
  • The User Accounts window will open. Uncheck Users must enter a user name ...
  • When you click OK, you will be prompted to enter your account password.
  • Restart your computer if you want to check.
+6
source

If this is a desktop application converted to UWP, you can declare the launch task in your appmanifest as follows:

 <desktop:Extension Category="windows.startupTask" Executable="bin\MyStartupTask.exe" EntryPoint="Windows.FullTrustApplication"> <desktop:StartupTask TaskId="MyStartupTask" Enabled="true" DisplayName="My App Service" /> </desktop:Extension> 

See Convert Desktop Application Extensions

+5
source

You can on Windows 10 (I'm not sure about Windows 8 or earlier), here are the instructions from Microsoft: https://docs.microsoft.com/en-us/windows/uwp/launch-resume/create-and-register -a-background-task

Even in Windows 10 IoT, you can configure the application to autostart using the PS command:

 [192.168.0.243]: PS C:\> iotstartup list MyBackgroundApp 
+3
source

You can create a .bat script that runs “run AppID! App”, the string “AppID! App” is available in the shell view: AppsFolder, you must add this column.

Then put the .bat file in the startup folder:

  • "shell: startup" for this user,
  • "c: \ windows \ system32 \ GroupPolicy \ User \ Scripts \ Logon" for all users of this computer.
+2
source

It seems that MS will add this function - window.startupTask - not only for converted desktop applications, but also for UWP applications.

You can see it at about 37:00 Tip, tricks and secrets: creating a great PC application for PC

But this feature is not ready yet - it will be available with the Windows 10 Fall Creators Update (I tried with SDK 16225, but not ready yet)

Added on 12/18/2017 . You can do this with the Autodesk Autodesk Win10 update. After publication, you will see the details.

Set up your login application (Windows Blog)

One point of consideration: for this function, you can simply "launch" the application - the application window does not appear. To see the application window, the user must click the application task in the taskbar. This is a bit ridiculous implementation for me. From the client’s point of view, “click to start” and “click to activate” are the same behavior. You can perform some task in the background before the user activates the application, but this is another story.

+1
source

All Articles