473,385 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Is installed?

Hi,

How do I tell ( in vb.net code ) if a certain program is installed e.g.
outlook, excel, word etc.

regards
Tim
Nov 21 '05 #1
1 953

Add a reference to system.management. Not all apps report the
Install location.

Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_Product")

moReturn = moSearch.Get

For Each mo In moReturn

Debug.WriteLine(String.Format("{0} Location {1} ", mo("Name"),
mo("InstallLocation")))

Next

If the string = your exe path exit the loop and life is good.
"Tim Marsden" <TM@UK.COM> wrote in message
news:eY*************@TK2MSFTNGP15.phx.gbl:
Hi,

How do I tell ( in vb.net code ) if a certain program is installed e.g.
outlook, excel, word etc.

regards
Tim


Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: michael newport | last post by:
I have installed php-4.3.3RC1 on Suse 8.2, and everything went fine even the make install, but I do not see the new version in yast2 software packages, it still has the old version 4.3.1 any...
29
by: DraguVaso | last post by:
Hi, I'm having this error in a VB.NET-application at the moment that I attempt to read data from an SQL Server: The .Net Data SQL Provider (System.Data.SqlClient) requires Microsoft Data...
11
by: Barry G. Sumpter | last post by:
Can get VS.Net to execute properly. I'm not the only one having this prob. The registry deletions don't work for me. Any users of MVPs have a solution for this?
3
by: Hugo Mind | last post by:
Hi, Is there a way through the web to find out if a client has the framework 1.1 installed ? I want people to download an installer for our software which includes the framework 1.1 if they...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
11
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. It is greatly appreciated. Is there a way to programmatically check for .NET Framework versions installed on the computer? -- Michael Bragg,...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
7
by: ray well | last post by:
how can i test during install time if the .NET Framework 2.0 has been installed. i'm assuming it is in the registry somewhere, but i don't know where to look, what to look for, and how to test for...
4
by: pwu | last post by:
Hi, I am doing an automated scan of a large number of UNIX machines which can be Solaris, AIX or HPUX. I want to find out for a machine via a script if: 1) DB2 is installed? 2) If installed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.