Thursday, August 27, 2009

How to Install/UnInstall COM Componets

If the COM file is a executive .exe file.Excute the file with a argument as below:
 -Service            // Install .exe COM file as a windows service.
 -UnregServer    // Uninstall .exe COM componet.
 -RegServer       // Install .exe COM file as a windows COM componet.


If the COM file is a DLL file, suppose the file name is mycom.dll.
regsvr32 mycom.dll              // To install dll COM
regsvr32 /u mycom.dll          // Run regsvr32 with argument /u to uninstall the dll COM

dcomcnfg    // This tool can see the all DCOM componets has installed in the system.


The Installutil.exe is a tool for .NET componets registration
Here some argument options
Option Description
/h[elp] Displays command syntax and options for the tool.
/help assemblypath Displays any additional options recognized by individual installers within the specified assembly.
/logFile=[filename] Specifies the name of the log file where install progress is recorded. The default is assemblyname.InstallLog.
/logToConsole={true|false} If true, displays output to the console. If false (the default), suppresses output to the console.
/showCallStack Prints the call stack to the log if an exception occurs at any point during installation.
/u[ninstall] Uninstalls an assembly. Unlike other options, /u applies to all assemblies regardless of where it appears on the command line.
/? assemblypath Displays any additional options recognized by individual installers within the specified assembly.
/? Displays command syntax and options for the tool.

The SC.exe is a Windows SDK tool
The SC.exe can be used to Query, Install, Uninstall and Setting Windows Service and Windows Hardware Drivers.

How to use it go ask google!