RatBoyGL
Pilgrim

Register a DLL with .NET Framework?

From my developer:

For SISWeb we need to register the COM component(SISCommon.dll) on the machine where SISWeb is deployed. This needs to follow the specific steps that are given below:

1) Go to the path where the .NET framework 4.0 is installed. By default it will be "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319"
2) Open the command window and type the command "Regasm /Codebase ". Below is the screenshot for your reference.


Does anyone know how to do this or the equivelent with InstallShield?
Labels (1)
0 Kudos
3 Replies
ch_eng
Flexera beginner

Re: Register a DLL with .NET Framework?

RatBoyGL,

If you have an InstallScript project, you could try something like this:

LaunchAppAndWait( WINSYSDIR ^ "cmd.exe", "/c " + WINDIR ^ "Microsoft.NET" ^ "Framework" ^ "v4.0.30319" ^ "RegAsm.exe /Codebase " + YOUR_PATH, WAIT | LAAW_OPTION_HIDDEN );


http://helpnet.flexerasoftware.com/installshield19helplib/Subsystems/installshield19langref/helplibr...

http://lifehacker.com/256474/pipe-commands-to-cmdexe-with-switches

http://helpnet.flexerasoftware.com/installshield19helplib/Subsystems/installshield19langref/helplibr...

HTH
0 Kudos
MichaelU
Flexera
Flexera

Re: Register a DLL with .NET Framework?

If you are using a Windows Installer-based project type such as a Basic MSI project, you can select the .NET COM Interop setting on your file's component to perform this registration the Windows Installer way.
0 Kudos
RatBoyGL
Pilgrim

Re: Register a DLL with .NET Framework?

Thanks you both for the replies.
0 Kudos