Hello Michael,
As Rowe has mentioned, you can use the System.IO's class to query and
search certain drives and directories on the machine. However, it is
important that you know tha keywords or naming convention of the programs
you want to search.
BTW, based on my experience, most program will add some configuration and
installation information in the system registry(under
HKEY_LOCAL_MACHINE\SOFTWARE key). For example, the Adobe reader will add
information like InstallPath, version in its registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader
Mozilla firefox will add its exeutable's name and path through the
following keys:
PathToExe
Program Folder Path
Therefore, you can also consider performing search in windows system
registry for the certain program's installation information and then
perform further search upon file system. How do you think? Here are some
reference about registry accessing in .net:
http://www.codeguru.com/csharp/csharp/cs_misc/userinterface/article.php/c103
09/
http://www.csharphelp.com/archives2/archive430.html
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.