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 ...
随机推荐
- 4-1逻辑与运算符介绍 & 4-2逻辑或运算符介绍
后面括号内的(n++)不运算了. 4-2逻辑或运算符介绍
- 《剑指offer》面试题17—合并两个排序链表
题目:输入两个递增排顺序的链表,合并这两个链表并使合并后的链表仍是递增排序的. 重点: 1.代码鲁棒性:要判断输入的两个链表都为NULL:其中一个链表为NULL的情况. 2.用递归实现,注意递归的思路 ...
- 201621123016 《Java程序设计》第十三周学习总结
1. 本周学习总结 以你喜欢的方式(思维导图.OneNote或其他)归纳总结多网络相关内容. 2. 为你的系统增加网络功能(购物车.图书馆管理.斗地主等)-分组完成 为了让你的系统可以被多个用户通过网 ...
- web框架原理,http 协议
目录 web框架原理 web框架是什么东西 执行代码用浏览器访问一下 输出结果 http 协议 http 协议简介 http 协议概述 http 工作原理 http请求方法 http 状态码 url介 ...
- github的上传本地文档
自从使用github以来,一直都是在github网站在线上传文件到仓库中,但是有时因为网络或者电脑的原因上传失败.最重要的原因是我习惯本地编辑,完成以后再一起上传github.看过了几个教程,总结出最 ...
- 用css固定textarea文本域大小尺寸
textarea元素在chrome等浏览器下可以被拖拉从而改变大小,对于查看textarea里面的内容来说相当方便,但是有时候 我们为了保持网页的美观,不得不想要禁掉这个功能,禁止用户随意拉动text ...
- [題解]hdu_6412公共子序列
https://blog.csdn.net/nka_kun/article/details/81902421 #include<bits/stdc++.h> #define ll long ...
- django (四) model模型
models模型 1. models 定义属性 概述 django根据属性的类型确定以下信息 ·当前选择的数据库支持字段的类型 ·渲染管理表单时使用的默认html控件 ·在管理站点最低限度的验证 dj ...
- 牛客寒假6-D.美食
链接:https://ac.nowcoder.com/acm/contest/332/D 题意: 小B喜欢美食. 现在有n个美食排成一排摆在小B的面前,依次编号为1..n,编号为i的食物大小为 a[i ...
- vue使用props动态传值给子组件里的函数用,每次更新,呼叫函数
父组件 <template> <div id="app"> <div>详情内容</div> <button v-on:clic ...