Install your Application into RaspberryPi2 and automatically start up
如何安装和卸载应用程序到RaspberryPi2? 如何配置应用程序在RaspberryPi2开机后自动启动?
How to install your app into RaspberryPi2?
How to configure your app automatically start up after device booting?
Read this article, and you will find the answers. Follow me, let’s go!
1 First you need to prepare an app package
Open VS solution, and double click the Package.appxmanifest file
You can configure the application in several tabs, it seems that it’s necessary to set a splash screen image on Visual Assets tab (for me it should be 1240x600 pix)
From the Packaging tab, you can enter a friendly package name and display name. The version is set to 1.0.0 as default. The build number will auto grow with your creation times.

Save the file after you have made the necessary edits for your app.
Now let’s start to create an app package.
In Solution Explorer, choose one start up project, right-click and choose Store->Create App Packages.

In Create Your Packages wizard, choose No unless you want to upload the app to the windows store, then click Next.

In Select and Configuration package dialog,
Select Always in Generate app bundle listbox, select all three architecture configurations(x86,x64 and ARM), no matter choose debug or release.
Click Create to generate the appxbundle package.

See AppPackages

2 Use Web-based device management to install/uninstall app
Web-based device management
provides basic configuration and device management capabilities which allows you add/remove applications and review the real time performance of windows IoT Device. Also you can use it to make diagnosis on the device and catch some error logs.
Set up connection
Open the browser, and enter the IP address of Raspberrypi2 with :8080 in the end.
In the credentials dialog, use the default username and password: Administrator, p@ssw0rd (if you haven’t changed the password yet)

Then you will see the device management Home screen.(May prompt you message to change password)

Install an app
In web-based device management page, Apps provides the install/uninstall functionality for Appx packages and bundles on your device.
Open the Appx screen, click Appx browse and find the .appxbundle file
Click certificate browse, find the .cer file
Add dependencies, one by one.
In Deploy section, click Go, it will show "Done!" well below after installing complete.

Then you can refresh the page and see your app installed in installed apps listbox.

Choose your app and click start, you will see your application on RaspberryPi2.

You can setup your app as default start up application after booting, just click Set Default, then you can reboot the device to validate if it works.
If you want to uninstall your app, just make sure your app is not running. (click X before the running app), and choose your app in installed apps, click uninstall.

References:
https://ms-iot.github.io/content/en-US/win10/tools/Webb.htm
https://msdn.microsoft.com/en-us/library/hh454036.aspx
An easy way to install application
The above is talking how to use web-based device management to install an app package. However, there is an easier way. You can just use VS to help install the app. Actually, once you configure the debug architecture and remote machine to deploy the packages, it has already installed the application into the remote device.
Let’s have a look. Make sure your app is removed from Raspberrypi2.
Choose ARM and Remote machine, input IP address and select none, click Deploy solution.
Open Web-based device management, you can see the application has been installed. Now you can configure it as default start up application if you want.
Note: For only deploying application into RaspberryPi2(ARM based), you can simply use VS to help you install the package, if you want to create an app for all devices, follow the web-based device management instruction.(step1 and 2)
后记:折腾了几天,终于移植了部分WPF代码到UWP上,虽然都是C#+xaml, 看起来似乎差不多,但是区别真的挺大,修改了好多地方,原来的程序用到了Mef,Module,region等等prism中的概念,而针对Universal windows app的prism.windows 以及prism.core 是不支持的,使用了prism.unity代替了原来的mef, (貌似Mef2支持UWP)其他的只得先copy了prism源代码,改了一部分,总算可以运行起最开始的界面了。说起原版WPF程序,其layout和workflow也是相当复杂的,都是可配置的,扩展了prism的region,哪天没有GBP约束了,我就把框架研究研究,发出来。
Install your Application into RaspberryPi2 and automatically start up的更多相关文章
- The certificate used to sign ***has either expired or has been revoked. An updated certificate is required to sign and install the application
真机测试的时候弹出这样的提示:The certificate used to sign ***has either expired or has been revoked. An updated ce ...
- The certificate used to sign “AppName” has either expired or has been revoked. An updated certificate is required to sign and install the application解决
问题 The certificate used to sign "AppName" has either expired or has been revoked. An updat ...
- webpacke install vue application 报错 Failed at the phantomjs-prebuilt@2.1.14 install script
刚刚在网上下了个开源的项目: https://github.com/ing670/webappkiller 执行npm install 报错:npm ERR! Failed at the phanto ...
- XCode 4.3 Unable to load persistent store UserDictionary.sqlite 以及 ios simulator failed to install the application
I have been working on an iOS app for some time, all of a sudden I am getting the following crash ev ...
- csvn install guide
一. make sure java install $ java -version $ echo $JAVA_HOME 二. untar tgz file $ tar xf CollabNetSubv ...
- Sharing The Application Tier File System in Oracle E-Business Suite Release 12.2
The most current version of this document can be obtained in My Oracle Support Knowledge Document 13 ...
- Android application testing with the Android test framework
目录(?)[-] Android automated testing 1 How to test Android applications Tip 2 Unit tests vs functional ...
- 转贴:sudo apt-get install 可以安装的一些软件
Ubuntu 下的一些软件安装sudo apt-get install virtualbox#华主席推荐 2007年年度最佳软件,最佳编辑选择奖得主.....sudo apt-get install ...
- How to modify a compiled Android application (.apk file)
Today I’d like to share with you my findings about how an existing .apk file can be modified. An .ap ...
随机推荐
- 1.7 hive基本操作
一.基本命令和设置 1.命令 [root@hadoop-senior hive-0.13.1]# bin/hive Logging initialized using configuration in ...
- 20个Flutter实例视频教程-第14节: 展开闭合列表案例
博客地址; https://jspang.com/post/flutterDemo.html#toc-5b0 视频地址: https://www.bilibili.com/video/av397092 ...
- HDU - 1272 小希的迷宫 并查集判断无向环及连通问题 树的性质
小希的迷宫 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走.但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一 ...
- ZOJ3166【找环值最小】
题意: 给你一幅图,要你找一个hotel能够满足出去回来,而且保证权值最小: 思路: 可以搜环,然后取最小权值环,拿个点: floyd方便,初始话自己到自己就是无穷,然后就枚举一下给出的hotel就好 ...
- assembly x86(nasm)修改后的日常
data segment ENG db 'SUNdayS Coming I Wanna Drive My Car,SUN,SUN$' ;9,3 sun1 db 'SUN' swcount db 0ah ...
- [題解]luogu_P2055假期的宿舍(二分圖最大匹配)
雖然是裸題但是仍然沒有看出來...... 1.每個人都對應一張床(可以的話),這樣把人和床看成點,對應關係就是邊,跑最大匹配看匹配數量夠不夠即可 2.連邊條件:如果一個學生且不回家,那麼他可以睡自己的 ...
- [BZOJ2251/BJWC2010]外星联络
Description 小 P 在看过电影<超时空接触>(Contact)之后被深深的打动,决心致力于寻找外星人的事业.于是,他每天晚上都爬在屋顶上试图用自己的收音机收听外星人发来的信息. ...
- hdu6315( 2018 Multi-University Training Contest 2)
bryce1010模板 http://acm.hdu.edu.cn/showproblem.php?pid=6315 /*hdu 1007 首先我们在建立线段树之前应该思考的是线段树的节点维护一个什么 ...
- 记录一下filter
filter是什么,如它的字面意思,就是拦截器.它可以在request到达相关资源之前,比如servlet之前先处理requeset,也可以拦截或处理从某个资源比如servlet发出的response ...
- Dubbo理论知识
本文是作者根据官方文档以及自己平时的使用情况,对 Dubbo 所做的一个总结.如果不懂 Dubbo 的使用的话,可以参考我的这篇文章<超详细,新手都能看懂 !使用SpringBoot+Dubbo ...