using regasm.exe or RegistrationService

Nov 10, 2016 at 9:54 AM
Hello,

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

Regards
martin
Coordinator
Nov 11, 2016 at 10:05 AM
Edited Nov 17, 2016 at 10: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.AddWixFragment(...
//or
project.WixSourceGenerated += doc => doc.InjectWxs("CommonProperies.wxs");
(see InjectXML sample).

This post has good description: http://stackoverflow.com/questions/364187/how-do-you-register-a-win32-com-dll-file-in-wix-3/364544#364544.

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 9:23 PM
Thx