Windows 10 IoT Core Startup App needs the Package name

I was looking for a way to get my own Windows 10 IoT Core app started when my Raspberry Pi2 is rebooted.

Because putting an app on the remote device using VS 2015 is not enough. The normal startup app:

pack1

Must be replaced by your own app.

The screen shown is the main screen from the ‘DefaultApp’ running.

I stumbled across http://ms-iot.github.io/content/en-US/win10/samples/HelloWorld.htm which give a pretty good explanation on how to create and deploy an app on a Win 10 Core device. And there is a description on how to get my Pi started up with my app.

The name of my app is App2 btw.

I followed the steps in Powershell. But “iotstartup list App2” gave me nothing. And just “iotstartup list” gave me a list of headed apps, but not my app. I fiddled around (checking head vs. headless etc.) but then it striked me that also the ‘DefaultApp’ was not listed with the exact name:

pack2

So I was thinking, maybe ‘App2’ is just plain wrong, I have to use another identifier…

And there it was, in plain sight, the package name:

pack3

So I tried ‘iotstartup add headed 7e3ab565-bbac-481a-86c8-12c991747ec2’ and it worked like a charm!

epilogue: after the successful startup, I switched back to the default app and rebooted. But this seemed to force the Pi to reinstall Windows 10 IoT Core again (I was told to relax while the device was starting up with this nice circular waiting cursor). But this took a lot of time! So finally I put a new image on the micro-sd card but then the Pi was not booting anymore. I just got a red and green led running continuously. Did it die on me? Nope. I had another micro-sd card with Raspbian on it and the Pi started and worked fine. Then I tried my Windows 10 IoT Core again and now it rebooted correctly.

Advertenties