MSIX: Package Support Framework Part TWO – Preparation

___________________________________________________________________________________________________________________________

IMPORTANT ANNOUNCEMENT FOR OUR READERS!

AskPFEPlat is in the process of a transformation to the new Core Infrastructure and Security TechCommunity, and will be moving by the end of March 2019 to our new home at https://aka.ms/CISTechComm (hosted at https://techcommunity.microsoft.com). Please bear with us while we are still under construction!

We will continue bringing you the same great content, from the same great contributors, on our new platform. Until then, you can access our new content on either https://aka.ms/askpfeplat as you do today, or at our new site https://aka.ms/CISTechComm. Please feel free to update your bookmarks accordingly!

Why are we doing this? Simple really; we are looking to expand our team internally in order to provide you even more great content, as well as take on a more proactive role in the future with our readers (more to come on that later)! Since our team encompasses many more roles than Premier Field Engineers these days, we felt it was also time we reflected that initial expansion.

If you have never visited the TechCommunity site, it can be found at https://techcommunity.microsoft.com. On the TechCommunity site, you will find numerous technical communities across many topics, which include discussion areas, along with blog content.

NOTE: In addition to the AskPFEPlat-to-Core Infrastructure and Security transformation, Premier Field Engineers from all technology areas will be working together to expand the TechCommunity site even further, joining together in the technology agnostic Premier Field Engineering TechCommunity (along with Core Infrastructure and Security), which can be found at https://aka.ms/PFETechComm!

As always, thank you for continuing to read the Core Infrastructure and Security (AskPFEPlat) blog, and we look forward to providing you more great content well into the future!

__________________________________________________________________________________________________________________________

 

This post is also available in the Core Infrastructure and Security TechCommunity at this link: https://techcommunity.microsoft.com/t5/Core-Infrastructure-and-Security/MSIX-Package-Support-Framework-Part-2-Preparation/ba-p/393864

 

Hi everyone, Ingmar Oosterhoff, Johannes Freundorfer, and Matthias Herfurth here continuing from our previous blog, which can be found at https://techcommunity.microsoft.com/t5/Core-Infrastructure-and-Security/MSIX-Package-Support-Framework-Part-One-The-Blueprint/ba-p/363594. In this post, we will now proceed with preparing our machine to make use of the PSF later on.

NOTE: To save on resources and creating additional Virtual Machines I’m going to be using my MSIX packaging machine for this (makes sense to me anyway).

Modifying an existing MSIX package is nice and easy using MakeAppx.exe. As MakeAppx.exe is part of the Microsoft Windows 10 SDK, the first step in our process will be to download it from: https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk

Once downloaded, install it, and select 2 components, as shown below:

Next, create some folders to use as working directories…

I’ve created a Resources folder in C:\ with a MakeAppx (for later use) and Nuget folder as subfolders as shown in the image below:

The next step in the process will be downloading the Package Support Framework using Nuget as follows.

  • Download Nuget from https://www.nuget.org/downloads
  • Save the nuget.exe in the c:\resources\Nuget folder
  • Start cmd.exe
  • CD to the c:\resources\nuget folder
  • Run the following command: nuget install Microsoft.PackageSupportFramework

This will create a subfolder in c:\resources\Nuget folder containing the framework

Snapshot your VM to allow you to revert to this state.

Now we have the tools in our next post, where we’ll download and compile a simple “made to break” ready to repair application, stay tuned!

Thanks for reading!