RE: EIF: Custom Event problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Mike Hayton [MS] (mikehayt__at_online.microsoft.com)
Date: 09/04/04


Date: Sat, 04 Sep 2004 01:36:09 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

-- 
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
| 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)
| 
| 
| 


Relevant Pages

  • Re: Flat File Problem
    ... It was the namespace I was using to ... When I debug the orchestration the RecCount variable is null. ... Have you deployed the Biztalk Assembly that contains the property schema ... And you can promote properties from the Header into the message context, ...
    (microsoft.public.biztalk.general)
  • Schema versioning / namespace or no namespace / like root nodes / Pipelines - any ideas?
    ... Namespace Options: Trying to figure out which way to go... ... I'm planning to handle the varying levels of schema content being ... Pipeline component to add this namespace to incoming SAP docs. ... pipeline per assembly-version (since there's no need for the pipeline ...
    (microsoft.public.biztalk.general)
  • Re: Re: Re: SQLXML Namespaces
    ... > namespace, so SQLXML has declared an arbitrary prefix for the ... > the results you can declare any prefix you like and the XML ... >> Your schema must have a default or target namespace ...
    (microsoft.public.sqlserver.xml)
  • Re: Message type conversion from C# object to BizTalk message
    ... Originally I didn't know what you meant, but of course in BizTalk there are ... Properties) when you simply click once on the schema file and have the ... The second namespace is the targetNamespace in the ...
    (microsoft.public.biztalk.general)
  • Re: BT2006 Debatching from SQL Adapter
    ... How do you have the Any node set up in the schema? ... namespace like http://a.b.c/Schemas/MyDatabase. ... I'm getting errors on my receive pipeline saying ...
    (microsoft.public.biztalk.general)