Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / September 2004

Tip: Looking for answers? Try searching our database.

EIF: Custom Event problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gregory Van de Wiele - 26 Aug 2004 16:02 GMT
How are EIF (custom) events uninstalled from their corresponding WMI
namespace? I tried installutil /u on the schema dll but the events remain
visible in my CIM studio...

Regarding custom events I read somewhere 'the event classes have to be all
inside one assembly.
This limitation was imposed by WMI.NET (which EIF leverages).' This is
indeed clear in the custom event sample. But can you have 2 schema
assemblies installed on your machine? Meaning the original and a new custom
one with a different assembly-name + assembly namespace that targets a
different WMI namespace?

Thanks,
Gregory (gregory@eai.be)
Mike Hayton [MS] - 04 Sep 2004 02:36 GMT
Hi Gregory,

The current version of the ManagementInstaller class implementation (which
EIF uses) does not unregister the schema during an uninstall operation.
Effectively we leave it as it is after the schema installation; however you
do have an option to remove the schema from the WMI repository by deleting
the namespace under which the schema resides.

Here?s a script that you could use to delete a namespace (please note:
deleting a namespace will remove all the classes and instances in it)


On Error Resume Next
strMachineName = InputBox("Enter the machine name or '.' for local machine")
set wmiService = GetObject("winmgmts:\\" & strMachineName & "\root")
strNamespace = InputBox("Enter the namespace that you want to delete")
wmiService.Delete("__Namespace.Name='" & strNamespace & "'")
If Err.Number <> 0 then
           Wscript.Echo "Error Deleting the Namespace. Error Number: " &
Err.Number
Else
           Wscript.Echo "Succesfully Deleted the Namespace " & strNamespace
End If


Hope it helps.

Thx

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------

|
| How are EIF (custom) events uninstalled from their corresponding WMI
[quoted text clipped - 11 lines]
| Thanks,
| Gregory (gregory@eai.be)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.