MR Install:HoloLens2

From RED IRON LABS | Help
Revision as of 00:16, 27 April 2024 by Lsummers (talk | contribs) (Created page with "= HoloLens 2 = == Automatic & Web Updates == To automatically install updates, or to install them over the web, several extra steps need to be taken during the packaging process. In some cases, applications can be provisioned for automatic deployment through Azure, but introduces challenges for sideloading and installation. The recommended approach is to use a signing certificate and to sideload the application. The complex part of this process is generating, testing...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

HoloLens 2

Automatic & Web Updates

To automatically install updates, or to install them over the web, several extra steps need to be taken during the packaging process. In some cases, applications can be provisioned for automatic deployment through Azure, but introduces challenges for sideloading and installation. The recommended approach is to use a signing certificate and to sideload the application.

The complex part of this process is generating, testing and installing the signing key.

Within the Project

  1. Create a build from Unity to Visual Studio 2022
  2. Setup / obtain a certificate
  3. Sign the application in Visual Studio 2022
  4. Create an application.appxbundle file

Within the HoloLens 2

  1. Install the certificate onto the headset
  2. Download the application.appxbundle file
  3. Install the application from the HoloLens2

More information is available here.

Manual Updates

In some cases, it is faster and easier to manually update the headset.

The complex part of this process is ensuring Visual Studio 2022 is installed and configured properly.

Setup the Environment (only needs to be done once)

  1. Download Visual Studio 2022
  2. Include the following workloads:
    1. .NET Desktop Development
    2. Desktop Development with C++
    3. Universal Windows Platform
  3. When installing UWP, ensure the following components are also included:
    1. Windows 10 SDK 10.0.19041.0 or 10.0.18362.0 or the Windows 11 SDK
    2. USB Device Connectivity (device driver for connection)
    3. C++ (v142) Universal Platform tools
  4. Finally, Install Unity 2020.3.42f1 with the following workloads:
    1. Windows
    2. Universal Windows Platform Build Support
    3. Windows Build Support (IL2CPP)

Sideloading a Package

Example from Visual Studio 2022
  1. Download a prepared package from our team or website, unzip it, and open it in Visual Studio 2022
  2. Connect the headset via USB-C
  3. Ensure the project is still configured as follows
    1. Ensure your project is set to the right project (i.e. Your Application Name) by right clicking on it and setting it as the Startup Project
    2. Set the project to ARM64
    3. Ensure it is set to Device (not remote machine)
  4. Press Play/Build

More information is available here.