In order to install the XPS Viewer app on Windows 10, do the following:

  1. Open Settings.
  2. Click on Apps.
  3. Click on Apps & features.
  4. Under "Apps & features," click the Manage optional features link.

  1. Click the Add a feature button.

  1. Select XPS Viewer from the list.

  1. Click the Install button.

After completing the steps, the XPS Viewer will install on your computer, and you'll once again be able to open files stored on your computer using this file format.