cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
RatBoyGL
Level 4

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
Level 7

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/helplibrary/LaunchApplication.htm

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

http://helpnet.flexerasoftware.com/installshield19helplib/Subsystems/installshield19langref/helplibrary/LangrefLaunchAppAndWait.htm

HTH
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

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
Level 4

Thanks you both for the replies.
0 Kudos