Replicating Visual Studio COM registration with a WiX Installer

后端 未结 4 701
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 23:50

Once upon a time, a young, naive engineer thought it would be a good idea to separate out some of the functionality for his app into a COM component, written in C#. Visual

4条回答
  •  感情败类
    2020-12-05 00:40

    I recently ran into this issue, and the simplest workaround I could find follows these steps on the development machine:

    1. Run: Regasm MyDLL.dll /tlb:MyDLL.tlb
    2. Run: Heat file MyDLL.dll -out MyDll-1.wxs
    3. Run: Heat file MyDll.tlb -out MyDll-2.wxs

    MyDll-2.wxs contains a element that you will want to copy and nest inside the element that was generated in MyDll-1.wxs. This will give you a complete element that you can use in the installer project.

提交回复
热议问题