Jump to content



Photo

C# Win8 Store App startup with Windows

c# windows store app

  • Please log in to reply
7 replies to this topic

#1 James Rose

James Rose

    Software Developer

  • Tech Issues Solved: 1
  • Joined: 20-January 04
  • Location: New York City

Posted 30 January 2014 - 01:22

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.




#2 Kami-

Kami-

    ♫ d(-_-)b ♫

  • Tech Issues Solved: 2
  • Joined: 28-July 08
  • Location: SandBox

Posted 30 January 2014 - 13:15

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.



#3 Eric

Eric

    Neowinian Senior

  • Tech Issues Solved: 11
  • Joined: 02-August 06
  • Location: Greenville, SC

Posted 30 January 2014 - 13:34

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.

#4 AsherGZ

AsherGZ

    nonon best girl

  • Joined: 30-June 11
  • Location: Karachi, Pakistan
  • OS: Windows 8.1 Pro x64
  • Phone: Lumia 820, 520

Posted 30 January 2014 - 14:19

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.



#5 OP James Rose

James Rose

    Software Developer

  • Tech Issues Solved: 1
  • Joined: 20-January 04
  • Location: New York City

Posted 31 January 2014 - 16:11

Thanks for the feedback.   This is my media player that is designed for use on a tv.  Current version: http://www.blissgig....play.aspx?id=13  Upcoming version: http://www.blissgig....play.aspx?id=21

 

If anyone has a link to the proper process on startup apps I would really appreciate it.



#6 Eric

Eric

    Neowinian Senior

  • Tech Issues Solved: 11
  • Joined: 02-August 06
  • Location: Greenville, SC

Posted 31 January 2014 - 16:16

http://msdn.microsof...s/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.

#7 +LambdaLambdaLambdaFn

LambdaLambdaLambdaFn

    Neowinian

  • Joined: 13-November 13

Posted 23 February 2014 - 17:25

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.



#8 rfirth

rfirth

    Software Engineer

  • Tech Issues Solved: 2
  • Joined: 11-September 09
  • Location: Baton Rouge, Louisiana
  • OS: Windows 8
  • Phone: Nokia Lumia 620

Posted 23 February 2014 - 18:02

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.





Click here to login or here to register to remove this ad, it's free!