Add "Registration Components" and "Uninstall Components" items to the Right-click menu of the COM component

zhaozj2021-02-16  90

Add "Registration Components" and "Uninstall Components" items to the Right-click menu of the COM component file.

(http://blog.9cbs.net/wqf2/)

For those who often use COM components, registration components, unload components are certainly operated. Usually, everyone will register in the "Regsvr32 XXX" in the Run dialog. Don't help have some troubles, do you have any way to run the registration and uninstallation by right-click? In fact, only need to write a .reg file, add it to the registration table. The content is as follows:

Windows Registry Editor Version 5.00

[HKEY_CLASS_ROOT / DLLFILE / SHELL / Registration Components]

[HKEY_CLASS_ROOT / DLLFILE / Shell / Registration Components / Command] @ = "Regsvr32 /"% 1 / ""

[HKEY_CLASS_ROOT / DLLFILE / Shell / Uninstall Components]

[Hkey_classes_root / dllfile / shell / uninstallation component / command] @ = "Regsvr32 -u /"% 1 / ""

[HKEY_CLASS_ROOT / OCXFILE / SHELL / Registration Components]

[HKEY_CLASS_ROOT / OCXFILE / SHELL / Registration Components / Command] @ = "Regsvr32 /"% 1 / ""

[Hkey_classes_root / ocxfile / shell / uninstall component]

[HKEY_CLASS_ROOT / OCXFILE / Shell / Uninstall Components / Command] @ = "Regsvr32 -U /"% 1 / ""

Whether it is an OCX file or a DLL file, you can easily register and uninstall in this way.

转载请注明原文地址:https://www.9cbs.com/read-12241.html

New Post(0)