How do I install and uninstall applications to RaspberryPi2? How do I configure the application to start automatically after RaspberryPi2 boot?
How to install the Your app into RaspberryPi2?
How to configure your app automatically start and after device booting?
Read This article, and you'll find the answers. Follow me, let ' s go!
1 first need to prepare a app package
Open VS solution, and double click the package.appxmanifest file
Can configure the application in several tabs, it seems that it's necessary to set a splash screen image on C1>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 would auto grow with your creation times.
The Save the file has made the necessary edits for your app.
Now let's start to create the apppackage.
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 and then C Lick Next.
In the Select and Configuration Package dialog,
Select always in Generate app bundle ListBox, select all three architecture configurations (x86,x64 A nd 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 RE Al time performance of Windows IoT Device. Also you can use it for 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, [e-mail protected] (if you haven ' T changed the password yet)
Then you'll see the Device Management Home screen. (May prompt your message to change password)
Install an App
In Web-based Device Management page, Apps provides the Install/uninstall functionality for APPX packages and Bund Les 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 the Deploy section, click Go, it'll 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'll see the your application on RaspberryPi2.
You can setup your app as default start up application after booting, just click Set defaultand then can reboot The device to validate if it works.
If you want to uninstall your app, the just make sure your app are 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 to install application
The above is talking what to use web-based Device management to install a app package. However, there is an easier. You can just use VS to help install the app. Actually, once configure the debug architecture and remote machine to DEP Loy the packages, it has already installed the application into the remote device.
Let ' s has a look. Make sure your app was removed from Raspberrypi2.
Choose ARM and Remotemachine, input IP address and select None, click Deploy solution.
Open web-based Device Management, you can see the application have 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. Help you install the package, If you want to create a app for all devices, follow the web-based device management instruction. (Step1 and 2)
PostScript: Toss a few days, finally transplanted some WPF code to the UWP, although all are c#+xaml, it seems similar, but the difference is really big, modified a lot of places, the original program used to mef,module,region and so on the concept of prism, Prism.windows and Prism.core for the universal Windows app are not supported, using prism.unity instead of the original MEF (seemingly MEF2 support UWP) Others have to copy the prism source code first , changed the part, finally can run the first interface. Speaking of the original WPF program, its layout and workflow is also quite complex, are configurable, expand the region of the prism, the day without the GBP constraint, I put the framework research, sent out.
Install your application to RaspberryPi2 and automatically start up