Quick Search for:  in language:    
updated,with,possiblity,typelibs,nowalso,hand
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,290,928. lines
 Jobs: 203. postings

 How to support the site

 
Sponsored by:

 
You are in:
 

Does your code think in ink?
Login





Latest Code Ticker for Visual Basic.
Movie Music Editor
By Misael Morales on 12/24


Click here to see a screenshot of this code!An awsome First person 3d game in PURE VB!! - NO DX!! - LOOK AT SCREENSHOT!!! - VERY FAST
By a_narchysnd_dro me on 12/24

(Screen Shot)

Click here to see a screenshot of this code!Taskbar Icon With a Borderless Form
By Immortal Tako on 12/24

(Screen Shot)

ErrorManager
By Cyber Chris on 12/24


Open and Compact Protected Db
By Nicola La Rocca on 12/24


Click here to see a screenshot of this code![Winsock Simple Multiplayer Game]
By andrej Kolla on 12/24

(Screen Shot)

soundex_functio n
By Joseph Varghese on 12/24


QSort Program
By Bill Adams on 12/24


Click here to see a screenshot of this code!Latest E-Santa Greeting
By anoopsihag on 12/24

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!

Affiliate Sites



 
 
   

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

Print
Email
 

Submitted on: 11/14/2003 9:25:49 AM
By: Knoton 
Level: Beginner
User Rating: By 6 Users
Compatibility:VB 6.0

Users have accessed this article 961 times.
 
(About the author)
 
     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

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
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

 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.


Other 14 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
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
11/14/2003 11:22:31 AM:Knoton
I forgot to mention that you ofcourse also need to run the .reg file to apply the data into the registry :-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/14/2003 12:33:45 PM:<big><font color=''&HFF2222''>WKG Software</font></big>
Hey, thanks! This will be quite useful.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/14/2003 1:29:44 PM:Serge Lachapelle
Excellent, why i have not thought about it before ! you can do it also for .ACM and .AX (audio/video codecs)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/14/2003 2:32:47 PM:Knoton
I am glad you like it. The simpliest solutions are often the best ones :-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/14/2003 4:56:42 PM:
Sweet...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/15/2003 12:33:34 AM:MrBobo
Neat isn't it - though it has been posted many times before...just a few from my database... CodeId=8725 CodeId=39500 CodeId=32915 CodeId=30755 CodeId=24498 CodeId=13246 CodeId=12020 CodeId=970 9 CodeId=46775
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/15/2003 2:13:46 AM:Knoton
Hehehehe Well, looks like it needs posting many times since there still is people who hasn´t thought about this :-)) I know I am one of them.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/19/2003 7:44:23 AM:Vlad Vissoultchev
Replace %1 with %L to get long file names support. Now guess how "regtlib -q \"%L\"" and "regtlib -q -u \"%L\"" can be used :-))) HTH, </wqw>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/19/2003 1:11:59 PM:Knoton
%L is good to know thanks Vlad :-) Regtlib is for making typelibraries.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/19/2003 1:13:24 PM:Knoton
Correction regtlib is for registering/Unregistering typelibs...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/19/2003 1:18:02 PM:Knoton
Vlad - Where in the registry do I find "tlbFile" ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/21/2003 5:03:38 AM:Vlad Vissoultchev
Knoton, check out this reg script: [HKEY_CLASSES_ROOT\.tlb] @=" typelib" [HKEY_CLASSES_ROOT\typelib\s hell\Register TypeLib\command] @="regtlib -q \"%L\"" [HKEY_CLASSES_ROOT\typelib\sh ell\Unregister TypeLib\command] @="regtlib -q -u \"%L\"" HTH, </wqw>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/21/2003 11:35:00 PM:Masino Sinaga
Makes me easier to register .ocx and .dll file. Thank you for sharing this. Simple but great!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.