[wix-users] XPS-Viewer installation on windows 10

rajesh keshri keshriraja at gmail.com
Tue Nov 12 23:14:19 PST 2019

HI Guys,

I need help in installation of XPS-Viewer on windows 10 machines through
wix. I use below code:

<CustomAction Id='AddXPSViewer' Property='XPSComponent'
Value='"[System64Folder]dism.exe" /Online /Add-Capability
/CapabilityName:XPS.Viewer~~~~' Execute='immediate'/>

<CustomAction Id="XPSComponent" BinaryKey="WixCA" DllEntry="CAQuietExec64"
Execute="deferred" Return="ignore" Impersonate="no" />


                <Custom Action="AddXPSViewer" After="CostFinalize" />

                <Custom Action="XPSComponent"
After="InstallInitialize"><![CDATA[(NOT Installed)]]></Custom>


But it not working.

Also to check,

I tried in elevated command line the below command,

  dism.exe" /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~

It gives error-87 on remote server.


Rajesh Keshri

More information about the wix-users mailing list