Go Back   PCMech Forums > Windows Support > Windows Tips, Tricks, and Tweaks

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-13-2001, 02:16 PM   #1
SQL nutcase
 
mosquito's Avatar
 
Join Date: Sep 2000
Location: Belgium
Posts: 1,136
Send a message via AIM to mosquito
If you are tired to use regsvr32.exe to register and unregister a dll, you can paste the following code in a .reg file and merge it in the registry. It gives you a register and unregister option in the popup menu of a dll file.
Code:
REGEDIT4

[HKEY_CLASSES_ROOT\dllfile\shell\Register...\Command]
@="\"regsvr32.exe\" \"%1\""

[HKEY_CLASSES_ROOT\dllfile\shell\UnRegister...\Command]
@="\"regsvr32.exe /u\" \"%1\""
I'll explain how this works.
If you open regedit (or regedt32) and check under the HKEY_CLASSES_ROOT key you will see a long list of keys with the name of file types. Those are all the file types that are known on your machine. If click on for example the ".bmp" key, you can see that the default value has the string "Paint.Picture" in it. This "paint.picture" refers to the name of your file type. If you do a find on "Paint.Picture" under HKEY_CLASSES_ROOT you will find a key with some subkeys under it. (CLSID, DefaultIcon, Insertable, protocol, shell) It's the shell key we are interested in. The subkeys under the shell key represent the menu items you can see when you right click on a .bmp file in the windows explorer. So if you want to add a menu item to the windows explorer, you can create a subkey under shell, and create a "command" subkey under it with as default value the command it has to execute when you click on the menu item.
mosquito is offline   Reply With Quote
Old 03-15-2001, 12:32 AM   #2
Member (6 bit)
 
Join Date: Nov 2000
Posts: 46
Send a message via ICQ to Riggieri Send a message via AIM to Riggieri
You can check out my article of Registry tweaks at http://www.pcmech.com/article.htm?registry
Riggieri is offline   Reply With Quote
Old 03-15-2001, 04:15 AM   #3
SQL nutcase
 
mosquito's Avatar
 
Join Date: Sep 2000
Location: Belgium
Posts: 1,136
Send a message via AIM to mosquito
Nice article.

If you read the registry, you can see that there are a lot of possibilities to customize your windows shell with little or no work. I'm currently writing an article that gives insight on how the windows shell is based on the registry, and what you can do to change it to your needs.
mosquito is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:06 PM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0