Creating an installation (MSI) to register (regasm) the assembly

I am working on a toolbar for IE using .NET. I am currently embedding my .NET assemblies using gacutil and registering my COM assembly with regasm.

I want to create a customization (MSI) for a project, but I cannot register types. I have everything in the GAC folder of the installation project, but I can’t find a way to run regasm essentially - and I don’t want to include it in the project. The / regfile option does not match type registration.

I tried using tlbexp to export the .tlb file and included it in the MSI application folder, but the problem seems to be fixed. If I run the MSI installer and manually run regasm on my assembly, then everything works fine. Any ideas?

Thanks.

+3
source share
2 answers

In accordance with this:

http://www.codeproject.com/KB/cs/C__Deployment.aspx?fid=439178

In the properties of the added output file in the Setup project, make sure that the Register property is set to vsdrpCOM. Setting this property ensures that the MSI file registers the ActiveX component using the regasm tool in .NET. During installation, the installer will take care of registering this C # component to open the COM interface.

+2
source

I don’t know if this help will help, but here it goes.

InstallShield InstallScript MSI, , DLL, GAC, GlobalAssemblyCache. regasm .NET COM Interop "" DLL.

0

Source: https://habr.com/ru/post/1712486/


All Articles