Windows 7 command prompt to register ocx files

kevvyb

New Member
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:
Link Removed due to 404 Error

but I still get this error
Link Removed due to 404 Error

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 Link Removed - Invalid URL

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 a moderator:
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:

Link Removed due to 404 Error
 
Last edited by a moderator:
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:
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.
 
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.:)
 
running Kodak Imaging on Windows 7

....or so I thought....

Trying to run the app not gives error "Failed to update the system registry. Please use REGEDIT". Do you have any ideas on this one...?
 
What I have found is that in the registry these entries are truncated like so:

C:\PROGRA~2\KODAKI~1\imgedit.ocx

I am trying to modify them to list the full pathname in case this makes any difference.
 
Okay. I have updated the system registry to read as the correct pathname (not truncated as in C:\Program Files (x86)\Kodak Imaging\imgscan.ocx) but I do not know if this has actually made any difference to the result. Despite the error message noted above ("Failed to update the system registry. Please use REGEDIT") the app still seems to function along with scanning software as before in Win98 and XP.

So far so good. Now I wonder if I can get rid of the annoying error message about using REGEDIT.....?

Is t definitely right to resister this with regsvr32 and not regsvr64?

Any further help greatly appreciated.
 
Hi Everyone,
ur all pro is solved
Plz Follow me step by step
Here Is the Tutorial.....
See Part 1.
part1.jpg


See Part 2.
Part2.jpg


See Part 3.
Part3.jpg


See Part 4.
Part4.jpg


See Part 5. Final
Untitled-5.jpg

 
Last edited:
All OCX AND DLL Files is Successful (Enjoy)

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
Hi Everyone,
ur all pro is solved
Plz Follow me step by step
Here Is the Tutorial.....
See Part 1.
part1.jpg


See Part 2.
Part2.jpg


See Part 3.
Part3.jpg


See Part 4.
Part4.jpg


See Part 5. Final
Untitled-5.jpg

 
Re: All OCX AND DLL Files is Successful (Enjoy)

Hi Everyone,
ur all pro is solved
Plz Follow me step by step
Here Is the Tutorial.....
See Part 1.
part1.jpg


See Part 2.
Part2.jpg


See Part 3.
Part3.jpg


See Part 4.
Part4.jpg


See Part 5. Final
Untitled-5.jpg


thanks man !!
this works great !! cheers !! :D
 
Re: All OCX AND DLL Files is Successful (Enjoy)

Hi, when i try to install Kodax Imaging in Win7, i try to follow the steps to register the ocx files i get error - "The Module "C\Program file|(my path where ocx files are stored)" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. Please let me know how to get this installed in the win7 32bits OS?
 
Back
Top