cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JoderCoder
Level 8

Regasm and Gacutil

For 3 dll files in my installer, I have a requirement that tells:


    Register for COM in order to use the assemblies. This can be done with the command line tool regasm.exe, but, if possible, should be done within the installer as regasm is not redistributable.



    Add to the Global Assembly Cache in order for COM to locate the assemblies. This can be done with the command line tool gacutil.exe, but, if possible, should be done within the installer as gacutil is not redistributable.


Not sure what I need to do anything for this? Would InstallShield take care of it automagically somehow? Can someone advise please?

Thanks!
Labels (1)
0 Kudos
(2) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

For Windows Installer projects (Basic MSI and InstallScript MSI), each component contained in the project has a .NET COM Interop setting. Setting this option to Yes will run regasm.exe against the component's keyfile at build and import the registry information into the built installation. If the destination for the component is [GlobalAssemblyCache], the /codebase parameter is passed as needed to regasm.exe at build time.
0 Kudos
JoderCoder
Level 8

Great, thanks very much.
0 Kudos