In a Deployment Project in .NET:
What is the best way to detect if Excel is installed on the client machine,
and which version they are using (I am referencing the Excel 10 objects) -
use a Registry search or a Windows Installer Search (which seems to look for
a GUID)? If I use the Windows Installer search, how do I find the GUID for
the Excel application? If using the Registry search, what key should I be
looking for?
Thanks for any help!
Theresa
Torgeir Bakken (MVP) - 14 Jul 2005 17:10 GMT
> In a Deployment Project in .NET:
>
[quoted text clipped - 6 lines]
>
> Thanks for any help!
Hi,
The "App Paths" entry in registry is perfect for this, here is
a VBScript example:
http://groups.google.co.uk/group/microsoft.public.scripting.vbscript/msg/0006fb0
357643ec6?dmode=source&hl=en

Signature
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
Phil Wilson - 14 Jul 2005 20:52 GMT
If you go to this link and scroll down to Search For a Windows Installer
Component, there is an example of a Windows Installer search(this uses Word,
not Excel) and a VBScript that lists the Windows Installer Component Guids
on a system to help you find the Guid for some piece of Excel (such as
Excel.exe that Torgeir suggests using a registry search for). So you'd run
the script on your system with the appropriate version of Excel and that
will tell you the Guid you need to plug in to the search.
http://www.simple-talk.com/2005/04/25/getting-started-with-setup-projects/

Signature
Phil Wilson [MVP Windows Installer]
----
> In a Deployment Project in .NET:
>
[quoted text clipped - 8 lines]
>
> Theresa