Attachment:
plugin.PNG [ 58.51 KiB | Viewed 9490 times ]
If you've been around Mirage since (near) 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.
Attachment:
dllregistration.rar [555 Bytes]
Downloaded 500 times
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 whatever 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:
Code:
"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:
Code:
"regsvr32.exe" /u "%1"
Here's what the "dllfile" branch should now look like:
Attachment:
regedit2.PNG [ 22.23 KiB | Viewed 9489 times ]
There, you can now try out registering and unregistering a .dll file.
Yours,
Robin
_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?