I want to open a PDF file after my WiX installer completes.
The relevant WiX XML I currently have is:
<Property Id="WixShellExecTarget" Value="[#Manual.pdf]" />
<CustomAction Id="ShowManual"
Return="ignore"
BinaryKey="WixCA"
DllEntry="WixShellExec"
Impersonate="yes" />
<InstallExecuteSequence>
<Custom Action="ShowManual" After="InstallFinalize">NOT Installed</Custom>
</InstallExecuteSequence>
This all works fine on machines where a PDF reader is installed. But if not, Windows is flashing up a message saying 'Windows can't open this type of file'.
Is there any way to get WiX to only attempt the call to ShellExecute
if there is an application associated with PDF files? Or is it possible to get the call to fail silently without displaying any errors?