Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Registration of .ocx and dll and dotnet dll


2 replies to this topic

asrinivas

asrinivas
  • Full Members
  • 36 posts

Posted 14 June 2007 - 06:01

Hi

we have a application containing many DLLS , OCX And Dot Net Dlls.

How to register all those...which property is provided to register them in installshield 12.
Please give us a solution......

Regards,
A.Srinivas

xinjiang

xinjiang
  • Full Members
  • 30 posts

Posted 18 June 2007 - 03:49

using the component wizard. "Extact the COM info" immediately or when building.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 18 June 2007 - 08:00

COM files must be either self registered or you must use the "COM extract at build" option as xinjiang states. The latter is generally preferred since it will allow MSI to properly clean up and or reference count the registry data since the registry data is then added to the MSI itself. Self registration is done by each file on its own, and MSI then has no control of what registry entries are added. COM files can be either DLL, OCX or EXE (the latter being an out of process COM server, and may need special handling. it can be registered by APP.EXE /RegServer from the command line).

.NET assemblies are generally easier. If they are private assemblies no registration is needed. If they expose themselves for COM Interop you need to enable the "COM Interop" setting in the component. This registers the .NET assembly so that it can be called by another COM component. If you are dealing with public assemblies they should be installed to the GAC if they are indeed used by different applications. Installation to the GAC requires strong file names (read the SDK for more info on this).

Win32 files generally does not require any registration (unless it is a service).
Regards
-Stein Åsmul