Sign in to follow this  

C# Win8 Store App startup with Windows

Recommended Posts

James Rose    38

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.

Share this post


Link to post
Share on other sites
Kami-    178

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.

Share this post


Link to post
Share on other sites
Eric    1,514

If it's something you want to run in the background it has to be configured as a lock screen application as far as I know.

Share this post


Link to post
Share on other sites
AsherGZ    481

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.

Share this post


Link to post
Share on other sites
Eric    1,514

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.

Share this post


Link to post
Share on other sites
LambdaLambdaLambdaFn    28

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.

Share this post


Link to post
Share on other sites
rfirth    727

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.