Right-click the COM component file and choose "register component" and "Uninstall component" from the shortcut menu.
Http://blog.csdn.net/wqf2)
For those who often use COM components, it is always necessary to register components and uninstall them. Generally, you will enter "regsvr32 XXX" in the "run" dialog box to register. If this is unavoidable, is there a way to operate registration and uninstallation by right-clicking the file?
In fact, you only need to write a. reg file and add it to the Registry. The content is as follows:
Windows Registry Editor Version 5.00
[Hkey_classes_root/dllfile/Shell/register component]
[Hkey_classes_root/dllfile/Shell/register component/command]
@ = "Regsvr32/" % 1 /""
[Hkey_classes_root/dllfile/Shell/uninstall component]
[Hkey_classes_root/dllfile/Shell/uninstall component/command]
@ = "Regsvr32-U/" % 1 /""
[Hkey_classes_root/ocxfile/Shell/register component]
[Hkey_classes_root/ocxfile/Shell/register component/command]
@ = "Regsvr32/" % 1 /""
[Hkey_classes_root/ocxfile/Shell/uninstall component]
[Hkey_classes_root/ocxfile/Shell/uninstall component/command]
@ = "Regsvr32-U/" % 1 /""
In the future, whether it is an ocx file or a DLL file, as long as it is a COM component, you can easily register and uninstall it in this way.