tags:

views:

326

answers:

1

I have developed a WMI provider in C# using the System.Management.Instrumentation namespace. I need to install the provider into the GAC and register it with the WMI repository using MSI. How might I accomplish this with WIX?

+1  A: 

You'll need a CustomAction to register the WMI provider. We've thought about adding a standard CustomAction to the WiX toolset to support this but haven't had the time to do so yet. Probably quite a bit of work.

Rob Mensching
Is it possible to do this without invoking InstallUtil.exe? We want to refrain from using InstallUtil because it lacks support for rollback scenarios.
Yeah, InstallUtil.exe should never be used for CustomActions. Using DLLs that read tables from the MSI are the way that all the WiX toolset CustomActions are implemented. You might check them out.
Rob Mensching

related questions