[wix-users] Register WMI Provided (mofcomp)

Christopher Painter chrpai at iswix.com
Tue Aug 8 03:48:28 PDT 2017

I'm a C# / DTF guy with little C++ experience.  Is there a .net class that implements IMofCompilter:CompileFile or would that be straight up p/invoke?

For some reason I thought I had a C++ with COM that I built as x86 and x64.  I thought Heat handled it.  I'm probably wrong and Nir is probably right though.

From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Nir Bar <nir.bar at panel-sw.com>
Sent: Monday, August 7, 2017 11:37 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Register WMI Provided (mofcomp)

To register the dll, you better use Heat as Christopher said. If this is a 64-bit dll then heat can't handle it. Instead, use RegShot (https://sourceforge.net/projects/regshot/) to capture the dll registration and with some find-and-replace you can turn it into wxs code.

regshot download | SourceForge.net<https://sourceforge.net/projects/regshot/>
Download regshot for free. Regshot is an open-source (LGPL) registry compare utility that allows you to quickly take a snapshot of your registry and then ...

To compile the MOF, the best practice method would be to create a custom action that uses IMofCompiler:CompileFile.

--Independent WiX Expert. Creator of-
https://JetBA.net - Native and WPF WiX BootstrapperApplication Frameworks

JetBA | WiX BootstrapperApplication library<https://jetba.net/>
Windows Installer XML BootstrapperApplications define the user interface and bussiness logic of WiX bundles. WiX provides built-in native BootstrapperApplication with ...

WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
WiX Support | WiX Experts and Resources from FireGiant<http://www.firegiant.com/>
WiX Support | Installation, Development, Deployment | WiX Experts and Resources from FireGiant

More information about the wix-users mailing list