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 ...
随机推荐
- 深度技术Win7系统利用diskpart命令实现硬盘分区的技巧
转自:http://www.xitongcheng.com/jiaocheng/win7_article_2491.html 1. 深度技术Win7系统利用diskpart命令实现硬盘分区的技巧分享给 ...
- 华为codecraft2018总结
华为codecraft2018总结 想来也是参加了第二次了,自己还是那么的菜.总结下今年的比赛,得奖是不存在的了,但是收获还是有的. 代码相关的都在这里了:https://github.com/hui ...
- conditon_variable(条件变量)用于线程间同步
conditon_variable(条件变量)用于线程间同步 condition_variable有5个函数,函数名及对应的功能如下: wait阻塞自己,等待唤醒 wait_for阻塞自己,等待唤醒, ...
- PYTHON3中 类的继承
继承 1:什么是继承 继承是一种创建新类的方式,在python中,新建的类可以继承一个或多个父类,也就是说在python中支持一个儿子继承多个爹. 新建的类成为子类或者派生类. 父类又可以成为基类或者 ...
- 简单运行Lua代码
http://blog.csdn.net/hamenny/article/details/4420522
- Codeforces Round #269 (Div. 2) A,B,C,D
CodeForces - 471A 首先要有四个数相等,然后剩下两个数不同就是Bear,否则就是Elephant. #include <bits/stdc++.h> using names ...
- Lightoj 1082【RMQ】
这里很low地写了个线段树... #include <bits/stdc++.h> using namespace std; typedef long long LL; const int ...
- 安装MySQL出现1045错误
安装MySQL出现1045错误 一.运行环境 MySQL mysql-5.1.26-rc-win32 操作系统:Windows 7 X64 二.问题描述 安装MySQL过程中会涉及对root密码的设置 ...
- LED与OLED的区别:
LED与OLED的区别: led和oled的发光原理是一样的,只 不过区别是用的材料不一样led用的是金属材料,而oled用的是有机物材料. OLED不需要背光源,自己本身会发光,是采用发光二极管阵列 ...
- cogs 1176. [郑州101中学] 月考
1176. [郑州101中学] 月考 ★ 输入文件:mtest.in 输出文件:mtest.out 简单对比时间限制:1 s 内存限制:128 MB [题目描述] 在上次的月考中Bug ...