|
-
Oct 29th, 2000, 09:42 PM
#1
Thread Starter
Frenzied Member
Does anyone know how you add the "Register" option to the popup menu that appears when you right-click on a .dll or .ocx file?
My computer at work has it, but not at home. Couldn't find the option to add it in TweakUI, either.
I'm running Windows 2000 (SP1).
Thanks in advance!!!
-
Oct 29th, 2000, 09:53 PM
#2
Hyperactive Member
Hi,
I can´t tell you how to do it in Windows2000 (SP1) because i haven´t used it, but in Windows98 what i did was to create a shortcut to \windows\system\regsvr32.exe in the folder \windows\SendTo\ and after that just right click in the .ocx or .dll file and in the submenu of Send To... in the popupmenu choose Shortcut (or whatever you named it) to Regsvr.exe and voila! your file is registered.
Saludos... 
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Oct 29th, 2000, 10:17 PM
#3
transcendental analytic
Shell regsvr32 from context menu, that's a cool idea, well heres what you can do:
Open regedit and create this key, .dll should be already there, just create the whole path:
HKEY_CLASSES_ROOT\.dll\shell\Register\command
and change it's default value to:
regsvr32 /s %1
then again create this key for unregister command:
HKEY_CLASSES_ROOT\.dll\shell\UnRegister\command
and set it's default value to
regsvr32 /s /u %1
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 29th, 2000, 10:19 PM
#4
transcendental analytic
BTw, if you want to do the same for OCX's just find the .ocx key in Classes root and do the same with it
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 29th, 2000, 11:18 PM
#5
Thread Starter
Frenzied Member
Thanks, guys
I like your idea, kedaman. I think I will do it for both ocx's and dll's.
I like your idea, too, D12Bit, but kedaman's is one less step in menu navigation and incorporates switches so I can register or unregister the components.
One question, k-man: Why do you use the "/s" switch? Doesn't that prevent messages from being presented to you if it succeeds or fails? Personally, I would like to know the result of the registration attempt.
[Edited by seaweed on 10-29-2000 at 11:24 PM]
-
Oct 29th, 2000, 11:28 PM
#6
Thread Starter
Frenzied Member
not working
I tried your suggestion k-man, but the option doesn't show up in the popup menu when i right click a .dll file. Any ideas? Does it work on your machine?
Thanks again,
-
Oct 29th, 2000, 11:36 PM
#7
Hyperactive Member
kedaman is right!
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Oct 29th, 2000, 11:47 PM
#8
Hyperactive Member
Just finished checking
Just realize that it worked ok with .ocx files but not with .dll files, ther most be somthing else that a .dll file needs...
Saludos...
p.s.
DON´T MIND THIS ONE
check my review in my post about .reg file
it´s all fixed for .dll files and .ocx files
Saludos...
[Edited by D12Bit on 10-30-2000 at 12:30 AM]
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Oct 30th, 2000, 12:34 AM
#9
Hyperactive Member
Check This out!
Hey seaweed,
check this corrections and tell me about it
Saludos...
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
-
Oct 30th, 2000, 12:42 AM
#10
Thread Starter
Frenzied Member
Thanks for your help guys, but...
Must be a Win2K thing, but the registry setting thing isn't working for .dll's or .ocx's on my machine. Thanks for your help, though!!!
-
Oct 30th, 2000, 04:52 AM
#11
transcendental analytic
hey, I think i removed the default value of
HKEY_CLASSES_ROOT\.dll
to make it work, then i forgot to post it (argh, why did i do that?) It's "Dllfile" right?
Anyway whatever registry you have, check up the default value of the .dll or .ocx key and find that key named for instance "Dllfile" and the the commands for that key intead Thanks D12bit for noticing me 
/s yeah, silent mode and doesn't show any stupid messages 
[Edited by kedaman on 10-30-2000 at 04:54 AM]
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 30th, 2000, 09:03 AM
#12
Here's a full version that provides register/unregister functions for DLL's and OCX's. It works for 95, 98, NT and 2000. There is also a bit at the top that you can remove that includes opening ANY file in either Notepad or Wordpad.
The Register/Unregister only shows if the file is a DLL or an OCX
Code:
REGEDIT4
;notepad and wordpad stuff for all files
[HKEY_CLASSES_ROOT\*\Shell]
[HKEY_CLASSES_ROOT\*\Shell\Notepad]
@="&Notepad"
[HKEY_CLASSES_ROOT\*\Shell\Notepad\Command]
@="Notepad \"%1\""
[HKEY_CLASSES_ROOT\*\Shell\Wordpad]
@="&Wordpad"
[HKEY_CLASSES_ROOT\*\Shell\Wordpad\Command]
@="\"c:\\program files\\windows nt\\accessories\\wordpad.exe\" \"%1\""
;-----------------------------------------------
;let the computer know that an ocx is an ocxfile
[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"
;---------------------------------
;register and unregister for dll's
[HKEY_CLASSES_ROOT\dllfile\Shell]
[HKEY_CLASSES_ROOT\dllfile\Shell\Register]
[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister]
[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""
;---------------------------------
;register and unregister for ocx's
[HKEY_CLASSES_ROOT\ocxfile\Shell]
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register]
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister]
[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""
;---------------------------------
;register and unregister for exe's
[HKEY_CLASSES_ROOT\exefile\Shell]
[HKEY_CLASSES_ROOT\exefile\Shell\Register]
[HKEY_CLASSES_ROOT\exefile\Shell\Register\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\exefile\Shell\UnRegister]
[HKEY_CLASSES_ROOT\exefile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""
This is probably one of the most useful thing a programmer can have in their toolbox
Whack it all into a file called OCXDLL.reg, then merge the file into the registry
It's not silent, simply because I like to know if the register failed (as it will if it has dependencies, or if it is not a DLL that requires registration. T make it silent, add the /s switch
Cheers
- gaffa
-
Oct 30th, 2000, 01:51 PM
#13
Thread Starter
Frenzied Member
Thanks again
I will try this stuff when I get home tonight. Thanks for all the help. This is a cool feature for all developers.
-
Oct 30th, 2000, 02:14 PM
#14
transcendental analytic
Looks good, i'll try merging that piece, gaffa
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jan 9th, 2001, 12:30 AM
#15
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|