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, [email protected] (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约束了,我就把框架研究研究,发出来。

时间: 2024-10-06 00:35:59

Install your Application into RaspberryPi2 and automatically start up的相关文章

webpacke install vue application 报错 Failed at the [email protected] install script

刚刚在网上下了个开源的项目: https://github.com/ing670/webappkiller 执行npm install 报错:npm ERR! Failed at the [email protected] install script 'node install.js'. 直接在项目根目录执行:npm install phantomjs-prebuilt -save 安装缺少的类库. 再次安装成功!

Android application testing with the Android test framework

目录(?)[-] Android automated testing 1 How to test Android applications Tip 2 Unit tests vs functional tests 3 JUnit 3 4 Running tests on a server without display Test hooks into the Android framework 1 Instrumentation 2 How the Android system executes

repackage android application

decompile the application file apktool d -o dianping/ dianping.apk modify the resources / smali assembly codes as you wish. diff -bur 51buy/smali/ 51buy_new/smali/ repackage the application apktool b -o dianping_new.apk dianping/ sign the repackaged

Distributing Your Application for os x

From:https://developer.apple.com/library/prerelease/content/documentation/Porting/Conceptual/PortingUnix/distributing/distibuting.html#//apple_ref/doc/uid/TP40002855-TPXREF101 Distributing Your Application Developing an application is only part of th

Xcode Unable to install "XXX"

The certificate used to sign "XXX" has either expired or has been revoked. An updated certificate is required to sign and install the application. Xcode -> Preferences -> Accounts -> View Details  然后分成上下两栏,上栏全部Reset一下,下栏左下角 Download All

【移动开发】App Install Location

Beginning with API Level 8, you can allow your application to be installed on the external storage (for example, the device's SD card). This is an optional feature you can declare for your application with the android:installLocation manifest attribu

Making your first driver - complete walkthrough(使用VisualDDK)

This article describes how to create, build and debug your first driver using Visual Studio and VisualDDK. It provides detailed step-by-step instructions on using the development and debugging tools, leaving the driver API and architecture descriptio

Android Asynchronous Http Client

Features Make asynchronous HTTP requests, handle responses in anonymous callbacks HTTP requests happen outside the UI thread Requests use a threadpool to cap concurrent resource usage GET/POST params builder (RequestParams) Multipart file uploads wit

Overview of iOS Crash Reporting Tools: Part 2/2

Thanks for joining me for the second part of this two-part series on crash reporting services! The first part introduced you to the architecture of crash reporting services, including storage, symbolication, and server-side management. As well, I pro