Right-click the COM component file and choose "register component" and "Uninstall component" from the menu.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.