WMI & .NET Framework

J

Jerry West

I just want to make certain I'm clear on something...

I plan on using WMI in my VB.NET 2008 project. To do so I include the
following statement:

imports System.Management

Now, what I want to be clear on is this --if a user has the .NET Framework
installed then my program will be able to use WMI. I don't also need to
insure that they have the WMI scripting library (wbemdisp.tlb) installed
like in VB6?

Thanks!

JW
 
K

kimiraikkonen

I just want to make certain I'm clear on something...

I plan on using WMI in my VB.NET 2008 project. To do so I include the
following statement:

imports System.Management

Now, what I want to be clear on is this --if a user has the .NET Framework
installed then my program will be able to use WMI. I don't also need to
insure that they have the WMI scripting library (wbemdisp.tlb) installed
like in VB6?

Thanks!

JW

Also it seems System.Management namespace is not present (undefined)
in .NET 2.0 with VB 2005 express. Why?

But there's in MSDN? :
http://msdn2.microsoft.com/en-us/library/system.management(VS.80).aspx
 
K

kimiraikkonen

Also it seems System.Management namespace is not present (undefined)
in .NET 2.0 with VB 2005 express. Why?

But there's in MSDN? :http://msdn2.microsoft.com/en-us/library/system.management(VS.80).aspx

Replying my own issue:
Referencing system.management DLL made VB 2005 recognize.

So Jerry, if you've done your program with referencing and using
correct library (and seems you did) and if the target framework is
installed and running on target machine, there shouldn't be any
difficulty for your program.

Also, if you still want to check a file's(assembly or library)
existence, use "System.IO.File.Exists" function in your form_load
event to notify user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top