using regasm.exe or RegistrationService

Nov 10, 2016 at 10:54 AM

is it possible to use RegistrationServices .RegisterAssembly to register a managed COM-library from within WiXSharp custom action?

Nov 11, 2016 at 11:05 AM
Edited Nov 17, 2016 at 11:15 PM
Not sure.

Wix# has a direct support for registering assemblies in GAC (see GAC sample). Though I am not sure what is the WiX recommended approach for managed-COM.

For native-COM you use heat.exe to emit registration *.wxs, which you can then reference in Wix#
project.WixSourceGenerated += doc => doc.InjectWxs("CommonProperies.wxs");
(see InjectXML sample).

This post has good description:

Though it is a question if the same approach will work for managed-COM.
Marked as answer by ShanghaiMcCoy on 11/16/2016 at 2:23 PM
Nov 16, 2016 at 10:23 PM