Mirage Source http://www.miragesource.net/forums/ |
|
Right Click Register Files http://www.miragesource.net/forums/viewtopic.php?f=210&t=4125 |
Page 1 of 1 |
Author: | Lea [ Sat Aug 09, 2008 9:26 pm ] |
Post subject: | Right Click Register Files |
By popular demand, I will write this tutorial for Htideswell because robin is an ass. This tutorial is a windows modification that will allow you to right click on any OCX file and register them with a context menu item. I assume you're using XP, I do not know if this will work in other versions of windows, especially Vista. Firstly, open my computer => Tools => Folder Options => File Types Find "OCX" in the list of file types. Click "Advanced". Click "New" In the action box, type "Register This File With Windows" or any other title you want. in the application box, type C:\WINDOWS\system32\regsvr32.exe "%L" Ok out of everything, and enjoy your new context menu. |
Author: | Anthony [ Sun Aug 10, 2008 12:16 am ] |
Post subject: | Re: Right Click Register Files |
This doesn't work that easily with Vista but I did manage to find a workaround using the registry. For whatever reason Microsoft removed the GUI for editing file types this way. Boo! You can use this method with XP as well I would assume but I haven't tested it. Warning This is a registry edit, I have tested this code and it does work but backup your registry before continuing just in case something goes wrong. Open Notepad and enter the following. Code: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\ocxfile\Shell] [HKEY_CLASSES_ROOT\ocxfile\Shell\Register] @="Register With Windows" [HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command] @="regsvr32.exe \\\"%1\\\"" Click Save As.. and save it as "ocxreg.reg". Close Notepad and then double click your newly created registry file, the data will be entered into the registry and you should now see it when you right click on your ocx files. Alternatively you can do this with dlls as well the same way but with this instead. Code: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\dllfile\Shell] [HKEY_CLASSES_ROOT\dllfile\Shell\Register] @="Register With Windows" [HKEY_CLASSES_ROOT\dllfile\Shell\Register\command] @="regsvr32.exe \\\"%1\\\"" That will not work if you have UAC enabled though. Horray I did something usefull! KTHXBAI. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |