Robin Posted June 10, 2009 Author Share Posted June 10, 2009 ![](http://img200.imageshack.us/img200/8361/plugin.png)If you've been around since the beginning, you might remember the age-old registry edit which was released, which allowed you to register a .dll file by adding a shell command to Explorer. I cannot find this file.Recently I started work on getting a VB6 project to be controlled by .dll files I created, but for this they needed to be registered. It got annoying having to regsvr32 them whenever I needed to, so I looked around and found what I was looking for. The problem was, it didn't allow spaces in the directory name, which is near-useless. After an hour or so, I found the fix. So I'm sharing it with you all.If you're lazy, and actually trust me with your registry, I exported my "HKEY_CLASSES_ROOT\dllfile" registry branch. Running the registry file provided, it'll automatically add the shell commands. You'll find it in the attachments.If you want to do it yourself, or want to learn _how_ to add your own shell commands, read on.Type "regedit" in to the run window, and you'll come up with the registry editor.The key we want to edit is in the "HKEY_CLASSES_ROOT" branch, so expand that. Type "dll" and you should automatically highlight "dllfile". Expand this. There should only be a single key in here, called "DefaultIcon". Right click the "dllfile" branch, and click "New -> Key". Call this "shell".Then, right click "shell" and create a new key called "Register .dll", or whatevan you want the shell command to be called. Within this, again, create another key called "Command". Double click the '(Default)' string value, and paste in:```"regsvr32.exe" "%1"```Then repeat the procedure, so you get a second command within "shell" called "Unregister .dll", add another command key, and set the default string value to:```"regsvr32.exe" /u "%1"```Here's what the "dllfile" branch should now look like:![](http://img140.imageshack.us/img140/8713/regedit2.png)There, you can now try out registering and unregistering a .dll file.Yours,_Robin_ Link to comment Share on other sites More sharing options...
Tivoilos Posted September 7, 2009 Share Posted September 7, 2009 I get .dll was loaded, but the DllRegServer entry point was not found..dll cannot be registered. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now