VB and VBA Users Source Code: Tip: Registering components using a right click in Explorer (uses Regsvr32)
[
Home
|
Contents
|
Search
|
Reply
| Previous | Next ]
VB/VBA Source Code
Tip: Registering components using a right click in Explorer (uses Regsvr32)
By:
Andrew Baker
Email (spam proof):
Email the originator of this post
Date:
Tuesday, April 11, 2006
Hits:
2544
Category:
Visual Basic General
Article:
The regedit file below can be used to add additional right click COM registration options to dll, ocx and exe file from within Windows Explorer. The right clicks menus that will be added are "Register", "Silent Register" and "UnRegister". To add the above menu items, simply save the text below into a file called "C:\RegisterCOM.reg" and run the file (ie double click on the file in Windows Explorer): REGEDIT4 [HKEY_CLASSES_ROOT\.exe] @="exefile" [HKEY_CLASSES_ROOT\.dll] @="dllfile" [HKEY_CLASSES_ROOT\.ocx] @="ocxfile" [HKEY_CLASSES_ROOT\.olb] @="olbfile" [HKEY_CLASSES_ROOT\exefile\shell\Register\command] @="%1 /register" [HKEY_CLASSES_ROOT\dllfile\shell\Register\command] @="regsvr32.exe %1" [HKEY_CLASSES_ROOT\ocxfile\shell\Register\command] @="regsvr32.exe %1" [HKEY_CLASSES_ROOT\olbfile\shell\Register\command] @="regsvr32.exe %1" [HKEY_CLASSES_ROOT\dllfile\shell\Silent Register\command] @="regsvr32.exe /s %1" [HKEY_CLASSES_ROOT\ocxfile\shell\Silent Register\command] @="regsvr32.exe /s %1" [HKEY_CLASSES_ROOT\olbfile\shell\Silent Register\command] @="regsvr32.exe /s %1" [HKEY_CLASSES_ROOT\exefile\shell\UnRegister\command] @="%1 /unregister" [HKEY_CLASSES_ROOT\dllfile\shell\UnRegister\command] @="regsvr32.exe /u %1" [HKEY_CLASSES_ROOT\ocxfile\shell\UnRegister\command] @="regsvr32.exe /u %1" [HKEY_CLASSES_ROOT\olbfile\shell\UnRegister\command] @="regsvr32.exe /u %1" [HKEY_CLASSES_ROOT\dllfile\shell\Silent UnRegister\command] @="regsvr32.exe /u /s %1" [HKEY_CLASSES_ROOT\ocxfile\shell\Silent UnRegister\command] @="regsvr32.exe /u /s %1" [HKEY_CLASSES_ROOT\olbfile\shell\Silent UnRegister\command] @="regsvr32.exe /u /s %1"
Terms and Conditions
Support this site
Download a trial version of the Excel Workbook Rebuilder