-
command prompt to register ocx files
Hi,
I have worked out that I can drag and drop the location to a command window opened with admin rights. Very useful.
However, this my cmd prompt window and pathname which looks correct:
http://img38.imageshack.us/img38/1693/commandprompt.png
but I still get this error
http://img38.imageshack.us/img38/3530/cmderror.png
Any ideas?
Would add that I am registering a program from Win98 here. However is worked perfectly in XP and so I thought it might also do so in Win 7.
Thanks
-
-
i had the same problem with one of my programs from xp.
Found that everything has to be EXACTLY right.
eg:
regsvr32.exe C:\Windows\System32\...................
All capitals in the right place as well. PERFECT. oh and dont forget to run cmd as admin...
-
-
Download oleRegWiz
this will add registrer and unregister to the right-click menu of.ocx, .exe and .tlb extensions. To add .dll's, add this to the registry, making sure the path to oleregwi.exe is correct.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\dllfile\shell]
[HKEY_CLASSES_ROOT\dllfile\shell\Register]
[HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
@=\"\\"E:\\Utility\\Oleregwi.exe\\" /reg \\"%1\\"\"
[HKEY_CLASSES_ROOT\dllfile\shell\Unregister\command]
@=\"\\"E:\\Utility\\Oleregwi.exe\\" /unreg \\"%1\\"\"
I've been using this for years.
When you use regsvr32 from the run box and it's a long file path name (as in your case, you need to use quotes around the path,)
such as regsvr32 "C:\Program Files (x86)\Kodak imaging\imgadmin.ocx"
Last edited by reghakr; 06-26-2009 at 07:41 PM.
-
-
The link doesn't work.
If you can locate the software and send it to me, If it is freely distributable, I will host it on my site.
Sorry:
http://geocities.com/reghacker/oleregwi.zip
Last edited by reghakr; 10-07-2009 at 01:11 AM.
Reason: Added zip file
-
-
Actually, there is a problem with oleRegwiz.....
I found it as RegWiz 1.0 but the exe is 1.0.1.15
Problem,,, will not work with UAC enabled
The code you posted has ] instead of \
Eventhough I have set the correct paths in the keys above, the registering of a dll opens the Open With window to find a program to open the dll with. This could be due to UAC enabled, and 7 just doesn't know what to do with it, or OLERegistration.exe did not install and register properly due to UAC eventhough I installed it with Run as Admin. I won't be doing any more testing with this app at this time.
If I find a real need to do that much dll, ocx, other registering (which I doubt) I may find a way to add the context menu properly to win7 context menu and make it work with UAC enabled. But I don't think I will at this time. I'm not saying it's bad or useless, for some people it will save time if they need to register/unregister these types of files often, it is a deffinate usefull tool. But for 97% it's kinda a useless, very specialised tool for very specific needs for very few people (imo) (programers mostly). But a good one in it's day and should be updated for 7, for those that really could use it, but I would think they already have it done. I know, that was long winded double talk.
Last edited by Tepid; 06-26-2009 at 03:57 AM.
-
-
Tepid,
yes, you're right, I was using Vista when I posted
I am, however,in that 3% of people who use it frequently.
I use Universal Extractor to unpack my downloaded .exe files. The only type universal Extractor will not unpack is a Borland,Visual Basic Overlay file, UPX compressed and a couple others
I like to know what inside the file before I install.
Microsoft has solved the DLL Hell problem, but not with ocx files. I've had installs that replace SP6 files with SP4 in the installation directory. I use oleregwiz to unregister that ocx file and re-register the newer file in the c:\windows\system32 directory.
For some reason Windows 7 does not pickup a dll file as a valid extension...Vista does and I apologize
You can however add regsvr32.exe $1 under the dllfile > shell > Register > command ke. Remember that unlike ocx files, many dll's are not self registering and may produce an error.
For those who use it very rarely, I think the Run box is the most likely option.
-
-
Can you fix your code in the regkey you provided, there is a mistype.
] should be \
-
-
-
-
Thanks, it was just if someone tries it out, the code would be wrong and they may not know how to fix it.
-
-
Truthfully, I don't know how I did that, I copied and pasted.
But, knowing me I probably hit a key somewhere.
-
Similar Threads
-
By dkperez in forum Windows 7 Discussion
Replies: 5
Last Post: 12-20-2009, 06:03 PM
-
By ihatethis in forum Windows 7 Networking
Replies: 0
Last Post: 10-26-2009, 05:34 PM
-
By Aren in forum Windows 7 Support
Replies: 15
Last Post: 10-22-2009, 12:58 AM
-
By gavi11 in forum Windows Vista Discussion
Replies: 2
Last Post: 05-04-2009, 11:18 AM
-
By nick_silver in forum Windows 7 Support
Replies: 11
Last Post: 05-03-2009, 07:52 PM
Tags for this Thread
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
|
|