Cannot Install XPS Viewer in Windows 10

Anonymous
2018-07-03T18:42:07+00:00

I am currently running a virtual machine on machine that does not have access to the internet. I am attempting to install the XPS Viewer on the machine but have had no luck.

I have tried the DISM command and have also tried the route adding the feature as suggested here: https://winaero.com/blog/install-xps-viewer-windows-10-version-1803/

Both solutions do not work. When attempting to install it via Apps & Features, XPS Viewer is simply not listed. When attempting to install it via DISM, I get the following error after executing, Dism /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.1.0.0, Error: 0x8024402c. I believe this error code is related to not being to use the Windows Update Server. So I tried this:

Dism /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.1.0.0 /LimitAccess

This returns Error: 87 and says: A Windows capability name was not recognized. So it appears that the feature is only available online. Is that a correct assumption? If so how can I get this installed without access to the internet?

*Modified title for accuracy*

*Original title: Cannot Install XPS Viewer in Latest Windows 10 Build*

Windows for home | Windows 10 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2018-10-31T15:17:21+00:00

Hi,

Not sure if this has been resolved from the previous comments. But I was able to find a solution.

*Go to regedit - 

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

Change 'UseWUServer' value data to '0'

  1. disconnect from corporate network (ethernet or VPN) and connect to only a public wifi (home/starbucks/etc)
  2. Windows+R - type in optionalfeatures and hit enter
  3. uncheck Microsoft XPS Document Writer and click ok. Then go back in and check the box and click ok.
  4. restart machine
  5. go to Apps & Features in Settings from Start Menu
  6. click Manage optional features
  7. click + Add a feature
  8. XPS Viewer should now be listed for installation

*Go to regedit - 

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

Change 'UseWUServer' value data back to '0'


Note from Moderator: It is recommended to create a System Restore point before modifying registry. 


Was this answer helpful?

70+ people found this answer helpful.
0 comments No comments
Answer accepted by question author
Anonymous
2019-01-22T09:13:36+00:00

Many people try this with no error, but unable to install the XPS viewer because of a GPO setting.

Change this to Enabled:

Optional Features,e.g. XPS Viewer.

Computer Configuration\Administrative Templates\System\Specify settings for optional component installation and component repair

Tick: Download repair content and optional features...

Was this answer helpful?

30+ people found this answer helpful.
0 comments No comments

24 additional answers

Sort by: Most helpful
  1. Anonymous
    2019-02-22T12:07:12+00:00

    jtg151  --  Here is the problem in your line. 

    DISM ......0.1.0.0   (Seems to be a typo)

    see below the line that worked for me..

    • ****note, that the options they say on this forum to use in Settings, to install optional Features, appears not to install any programs, including the language packs on any of our computers in the list, for Windows 10 Build 1809.xxxx

    Here is a screen shot of what actually worked. Build 1809.

    ____________________

    PS C:\Windows\system32> dism /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0

    Deployment Image Servicing and Management tool

    Version: 10.0.17763.1

    Image Version: 10.0.17763.316

    [==========================100.0%==========================]

    The operation completed successfully.

    PS C:\Windows\system32>

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-07-04T00:12:40+00:00

    Most if not all third-party PDF readers, like Foxit Reader for example, can open .xps files.  I don't know why someone would go to all the trouble of a repair install.

    Was this answer helpful?

    7 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2018-07-03T22:42:56+00:00

    Hi jtg 151,

    We're changing the way you get XPS Viewer. In Windows 10, version 1709 and earlier versions, the app is included in the installation image. If you have XPS Viewer and you update to Windows 10, version 1803, there's no action required. You'll still have XPS Viewer.

    However, if you install Windows 10, version 1803, on a new device (or as a clean installation), you may need to install XPS Viewer from Apps and Features in the Settings app or through Features on Demand. If you had XPS Viewer in Windows 10, version 1709, but manually removed it before updating, you'll need to manually reinstall it.

    Since you have tried adding the XPS Viewer from the Apps and Features in the Settings app and through Features on Demand, I would suggest that you perform a repair upgrade using the latest Windows 10 ISO file. Performing a repair upgrade can repair broken operating system files while preserving your personal files, settings and installed applications. You can follow the steps that was provided by Andre Da Costa in this Forum Article to perform a repair upgrade.

    Should you need further assistance, don't hesitate to get back to us.

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments