[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~~~~0.0.1.0' Execute='immediate'/>
<CustomAction Id="XPSComponent" BinaryKey="WixCA" DllEntry="CAQuietExec64"
Execute="deferred" Return="ignore" Impersonate="no" />
<InstallExecuteSequence>
<Custom Action="AddXPSViewer" After="CostFinalize" />
<Custom Action="XPSComponent"
After="InstallInitialize"><![CDATA[(NOT Installed)]]></Custom>
</InstallExecuteSequence>
But it not working.
Also to check,
I tried in elevated command line the below command,
dism.exe" /Online /Add-Capability /CapabilityName:XPS.Viewer~~~~0.0.1.0
It gives error-87 on remote server.
Thanks,
Rajesh Keshri
More information about the wix-users
mailing list