DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004
    Location
    Lincoln, England
    Posts
    100

    [C#] Check if a particular program is installed

    Afternoon folks!

    Simple one (Me hopes)!

    I have a program that manipulates a text file, which another program will in turn use, but I want my program to check for the presence of the other program on the users hard drive. The program I want to check for is installed properly using an installer.

    I think it can be done by checking certain registry keys, but I don't know any more than that, aside from the name of the .exe, the program knows nothing else about the program. Any pointers?
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    The installer probably adds an entry to the user's Add/Remove programs list, which is at HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 4
    Last Post: 10-03-2006, 07:37 PM
  2. Prime number program to make go faster
    By divagoddess in forum C++
    Replies: 12
    Last Post: 05-07-2006, 10:55 PM
  3. want to test my program?
    By jonneymendoza in forum Java
    Replies: 0
    Last Post: 04-28-2006, 02:05 PM
  4. Replies: 7
    Last Post: 04-26-2002, 11:25 AM
  5. Check box isssue when bound to a database column
    By Narayan in forum VB Classic
    Replies: 0
    Last Post: 04-10-2001, 10:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links