command prompt to register ocx files

Discussion in 'Windows 7 Help and Support' started by kevvyb, Jun 23, 2009.

  1. kevvyb

    kevvyb New Member

    Joined:
    Jul 4, 2009
    Messages:
    52
    Likes Received:
    0
  2. Dreamflyer

    Dreamflyer New Member

    Joined:
    Jun 1, 2009
    Messages:
    12
    Likes Received:
    0
    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...
     
  3. reghakr

    reghakr Excellent Member

    Joined:
    Jan 26, 2009
    Messages:
    14,220
    Likes Received:
    180
    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.

    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"
     
    #3 reghakr, Jun 25, 2009
    Last edited by a moderator: Jun 26, 2009
  4. Tepid

    Tepid New Member

    Joined:
    Jun 11, 2009
    Messages:
    1,344
    Likes Received:
    38
    #4 Tepid, Jun 25, 2009
    Last edited by a moderator: Oct 7, 2009
  5. Tepid

    Tepid New Member

    Joined:
    Jun 11, 2009
    Messages:
    1,344
    Likes Received:
    38
    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.
     
    #5 Tepid, Jun 26, 2009
    Last edited: Jun 26, 2009
  6. reghakr

    reghakr Excellent Member

    Joined:
    Jan 26, 2009
    Messages:
    14,220
    Likes Received:
    180
    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.
     
  7. Tepid

    Tepid New Member

    Joined:
    Jun 11, 2009
    Messages:
    1,344
    Likes Received:
    38
    Can you fix your code in the regkey you provided, there is a mistype.

    ] should be \
     
  8. reghakr

    reghakr Excellent Member

    Joined:
    Jan 26, 2009
    Messages:
    14,220
    Likes Received:
    180
    Sorry bout that,

    Done.
     
  9. Tepid

    Tepid New Member

    Joined:
    Jun 11, 2009
    Messages:
    1,344
    Likes Received:
    38
    Thanks, it was just if someone tries it out, the code would be wrong and they may not know how to fix it.
     
  10. reghakr

    reghakr Excellent Member

    Joined:
    Jan 26, 2009
    Messages:
    14,220
    Likes Received:
    180
    Truthfully, I don't know how I did that, I copied and pasted.

    But, knowing me I probably hit a key somewhere.:)
     
  11. kevvyb

    kevvyb New Member

    Joined:
    Jul 4, 2009
    Messages:
    52
    Likes Received:
    0
    cmd prompt windows 7 path in quotes

    Thanks RegHkr.

    That worked a treat.
     
  12. kevvyb

    kevvyb New Member

    Joined:
    Jul 4, 2009
    Messages:
    52
    Likes Received:
    0
    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...?
     
  13. kevvyb

    kevvyb New Member

    Joined:
    Jul 4, 2009
    Messages:
    52
    Likes Received:
    0
    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.
     
  14. kevvyb

    kevvyb New Member

    Joined:
    Jul 4, 2009
    Messages:
    52
    Likes Received:
    0
    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.
     
  15. ritmoo

    ritmoo New Member

    Joined:
    Mar 14, 2010
    Messages:
    4
    Likes Received:
    0
    Hi Everyone,
    ur all pro is solved
    Plz Follow me step by step
    Here Is the Tutorial.....
    See Part 1.
    [​IMG]

    See Part 2.
    [​IMG]

    See Part 3.
    [​IMG]

    See Part 4.
    [​IMG]

    See Part 5. Final
    [​IMG]
     
    #15 ritmoo, Mar 14, 2010
    Last edited: Mar 14, 2010
  16. ritmoo

    ritmoo New Member

    Joined:
    Mar 14, 2010
    Messages:
    4
    Likes Received:
    0
    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.
    [​IMG]

    See Part 2.
    [​IMG]

    See Part 3.
    [​IMG]

    See Part 4.
    [​IMG]

    See Part 5. Final
    [​IMG]
     
  17. Ronak

    Ronak New Member

    Joined:
    Aug 27, 2011
    Messages:
    4
    Likes Received:
    0
    thanks man !this works great ! cheers ! :D
     
  18. Ronak

    Ronak New Member

    Joined:
    Aug 27, 2011
    Messages:
    4
    Likes Received:
    0
    Re: All OCX AND DLL Files is Successful (Enjoy)

    thanks man !!
    this works great !! cheers !! :D
     
  19. fs612

    fs612 New Member

    Joined:
    Feb 14, 2012
    Messages:
    2
    Likes Received:
    0
    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?
     

Share This Page

Loading...