article

Integrate Regsvr32 with Shell (Click to register/unregister .dll or .ocx or .tlb

Email
Submitted on: 2/4/2015 3:37:00 PM
By: Knoton (from psc cd)  
Level: Beginner
User Rating: By 6 Users
Compatibility: VB 6.0
Views: 1464
 
     Now updated with the possiblity to register/unregister typelibs (*.tlb) it can now also handle long filenames, thanks Vlad :-) I got tired of using regsvr32 the old way, so I integrated it to the shell. Makes life easier to register/unregister an .dll or .ocx file with just an click. I canīt figure out why I have not thought about it before :-))) What you need to do is to create your own .reg file putting in below info using notepad and naming the file to regsvr32.reg Or you can download my already made .reg file

This article has accompanying files

 
				Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\dllfile\Shell]
[HKEY_CLASSES_ROOT\dllfile\Shell\Register]
[HKEY_CLASSES_ROOT\dllfile\Shell\Register\Command]
@="Regsvr32 \"%L\""
[HKEY_CLASSES_ROOT\dllfile\Shell\Unregister]
[HKEY_CLASSES_ROOT\dllfile\Shell\Unregister\Command]
@="Regsvr32 /u \"%L\""
[HKEY_CLASSES_ROOT\ocxfile\Shell]
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register]
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\Command]
@="Regsvr32 \"%L\""
[HKEY_CLASSES_ROOT\ocxfile\Shell\Unregister]
[HKEY_CLASSES_ROOT\ocxfile\Shell\Unregister\Command]
@="Regsvr32 /u \"%L\""
[HKEY_CLASSES_ROOT\.tlb]
@="typelib"
[HKEY_CLASSES_ROOT\typelib\shell\Register\command]
@="regtlib \"%L\""
[HKEY_CLASSES_ROOT\typelib\shell\Unregister\command]
@="regtlib -u \"%L\""

winzip iconDownload article

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Other 13 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)
 

To post feedback, first please login.