In case you want to know step by step how to create an installer for your HL2. Step by step considerations are in this post.

Software requierements

  • Visual Studio 2019
  • Once you install the version you need, make sure you go to “Individuals components” in Visual studio installer.
  • And install the following items:
  • Windows 10 SDK version 10.0.19041.0 or 10.0.18362.0
  • USB Device Connectivity (required to deploy/debug to HoloLens over USB)
  • C++ (v142) Universal Windows Platform tools (required when using Unity)
No alt text provided for this image
  • Unity (I am working with 2020.3.13f1).
  • Make sure you install Universal Windows Platform and Windows Build Support (IL2CPP)
No alt text provided for this image
  • A hololens 2 device enabled for Developer Mode.
  • Inside Hololens:
  • Settings > Update > For Developers > Enable Developer Features. Optional : Device Portal.
  • Windows 10 enabled for Development: In the computer, you will be using to deploy the app, make sure you have Windows enabled for Dev by going to Settings > Update and Security > For developers > Developer Mode enabled.

Now that we have everything installed let’s see how to create the appx.

Inside UNITY

Once you have your project configured to work for Hololens 2. You need to go to Build Settings and make sure your settings indicate the following options. Once everything is ready, you need to press the Build button.

Unity will then request a folder to store the files. Once it finishes, you will get a new Visual Studio project.

Open it up in Visual studio and configure Solution configuration to “Mater” and Solution Platform to “ARM64”

Then under solution explorer, right click the Universal Windows project and select Publish > Create APP packages.

Select the opcion “Sideloading” and press Next.

In the signing methos select the opcion “Create”

Then create a Self-signed test certificate by filling the Name, password and press OK.

Then the signing method will load the certificate, once this is done then press Next.
In the configuration packages, only select the option “ARM64”.
If the compilation has no errors then the following screen will appear and the appx files will be located in the address displayed on the popup screen.

Once it

The APPX file is the one that the user needs to install to Hololens 2 through the portal.

Happy coding!

Leave a Reply

Your email address will not be published. Required fields are marked *

I’m Ivana

I’m a Technology Advocate who is living proof that Technology changes lives. I started my career with Microsoft from my small city (Salta), in Argentina. Now I train people and teams globally in the powerful international language of Tech. I inspire people from all walks of life to become world citizens and “geeks” like me who dream big and achieve amazing things. As a proud woman in Tech, content creator and public speaker I love travelling, connect and create magic moments of transformation; and I learn from everyone I meet. When I am not on the road, I am home with my husband and two dogs. My adventurous spirit in my work life is echoed in my love for Disney movies like Moana and Lilo & Stitch. Who knows “how far I’ll go” on my journey, but I know the power of Technology can get me there!

Let’s connect