【发布时间】:2011-08-04 03:14:27
【问题描述】:
我已经构建了一个类库,并使用 Visual Studio 构建选项将其注册为 com 访问。该库将由 excel VBA 访问。如何创建 MSI 以将其安装在将使用相同 excel 文件的另一台计算机上?
【问题讨论】:
我已经构建了一个类库,并使用 Visual Studio 构建选项将其注册为 com 访问。该库将由 excel VBA 访问。如何创建 MSI 以将其安装在将使用相同 excel 文件的另一台计算机上?
【问题讨论】:
MSI can get the job done. Right-click "File System on Target Machine", Add, GAC. Right-click that added folder, Add, Project Output. That ensures the assembly is gac-ed.
It can also register the assembly like Regasm.exe does. Set the Register property of the project output reference to vsdrpCOM.
Use Visual Studio Setup Project to automatically register and GAC a COM Interop DLL
【讨论】: