• 0

C# Win8 Store App startup with Windows


Question

I am rewring an app that currently has an option to start when Windows starts (via RUN in the registry)  I have been looking to see what the standards are for Windows 8 Store apps, and if I should still set this in the registry and/or if this is no longer considered best practice and if so... what is?

 

Thanks.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

You could put it in c:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup I guess, not sure if there is a better way other than registry.

Link to comment
Share on other sites

  • 0

If it's a Windows 8 Store app, you can't run it at startup. Actually you can't run it at all unless the user executes it himself. The most you can do is run a background process and use push notifications.

Link to comment
Share on other sites

  • 0

http://msdn.microsoft.com/en-us/library/windows/apps/hh770837.aspx

This is the documentation for launch/resume/suspend. There is no way to programmatically bring an app to the foreground. It has to be launched by the user. You can have a separate background task that's tied to the lock screen to handle tasks that might take the app longer to start but that's about it.

Link to comment
Share on other sites

  • 0

You can't run a Windows Store app on startup like you can a Desktop app.

 

Depending what your app does, you could use WNS to update a live tile or show a toast notification.  When the user clicks the toast, your app will run.

Link to comment
Share on other sites

  • 0

To do what you're asking, you'd have to put Windows 8.1 into kiosk mode...

Your app would be automatically started when the computer is turned on... exactly what you would want for a tv media player app. But you can't do it programmatically. The user has to do it.

Link to comment
Share on other sites

This topic is now closed to further replies.