Register dll onto the OS
-
Hi, I created a DLL by VC++ and want to register and install it onto WinXP. I would like to know what choices are available for achieving it ? 1. Can I get it done by programming with C# ? If yes, how ? 2. Can I get it done by .msi or .cab ? If yes, how ? And I want to know that the general practice for creating the CLSID for the dll for deploying a software dll. Is the clsID generated at the developer machine ? or generated at the target machine ? Thanks
-
Hi, I created a DLL by VC++ and want to register and install it onto WinXP. I would like to know what choices are available for achieving it ? 1. Can I get it done by programming with C# ? If yes, how ? 2. Can I get it done by .msi or .cab ? If yes, how ? And I want to know that the general practice for creating the CLSID for the dll for deploying a software dll. Is the clsID generated at the developer machine ? or generated at the target machine ? Thanks
Hi! If you mean you want to register a COM object then the easiest way is to call DllRegisterServer in the DLL. This can be achieved by calling "regsvr32 TheDll.dll" (using the Process class, for example). Or, if you want to include the COM dll in a setup, you usually can set the "SelfRegister" flag for the dll to true. In this case, windows installer calls DllRegisterServer in the dll during install. Regards, mav