This does not answer your specific question, but solves it from an alternative direction ...
Do you really need to install MS Excel, or do you need a computer to just display Excel files? For example, if a user has LibreOffice or another similar application compatible with an Excel file, is this acceptable?
We have an application that opens Excel files and PDF files for the user. We don't care what kind of software they have on their computer to view these files. This is not our concern. We are just a Process.Start(...) file and let the OS take it away from there.
We end the call in the Try/Catch block and offer suggestions for users if this call leads to an error; suggestions, for example, that they may not have Office (Excel), or that they do not have a PDF viewer. In principle, instead of proactively trying to determine if the user computer is in sufficient condition to complete the action, we assume that it is there, but then we handle the situation when it was found more than once.
ckittel Aug 19 2018-11-11T00: 00Z
source share