Can't run regsvr32 from .bat file, but can run from CMD

Page 3 of 3 FirstFirst 123

  1. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #21

    regsvr32 ole32.dll
    regsvr32 /s ole32.dll
    pause


    Both commands work in elevated command prompt?
    Both command work in bat file (run it elevated)?
      My Computer


  2. Posts : 12
    Windows 7 Pro 64-bit
    Thread Starter
       #22

    UsernameIssues said:
    Do you have UAC turned off?
    Are you on an admin account or on the Administrator (built in) account?
    When I installed Windows (from the Lenovo factory recovery disks) I only created one user, which has Admin rights. I don't believe I'm using the actual built-in Admin account, and I'm logging in as 'James'.

    UAC is off, so it kind of sounds like the first case you mentioned in a previous post. Admin user with UAC off.
      My Computer


  3. Posts : 10,485
    W7 Pro SP1 64bit
       #23

    When you right click on the cmd prompt shortcut, do you get a popup that has User Account Control in the title?

    Try to register ole32 per post 21.
      My Computer


  4. Posts : 12
    Windows 7 Pro 64-bit
    Thread Starter
       #24

    Kaktussoft said:
    regsvr32 ole32.dll
    regsvr32 /s ole32.dll
    pause


    Both commands work in elevated command prompt?
    Both command work in bat file (run it elevated)?
    Both of those run fine from a cmd window or a batch file (elevated and also when I don't "run as admin"). I also receive a dll registration successful message, which is something I never receive when I manually register the program dll.
      My Computer


  5. Posts : 12
    Windows 7 Pro 64-bit
    Thread Starter
       #25

    UsernameIssues said:
    When you right click on the cmd prompt shortcut, do you get a popup that has User Account Control in the title?

    Try to register ole32 per post 21.
    No, I don't see UAC in the right click menu, is that what you mean?
    Attached Thumbnails Attached Thumbnails Can't run regsvr32 from .bat file, but can run from CMD-menu.png  
      My Computer


  6. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #26

    jamesaru said:
    Kaktussoft said:
    regsvr32 ole32.dll
    regsvr32 /s ole32.dll
    pause


    Both commands work in elevated command prompt?
    Both command work in bat file (run it elevated)?
    Both of those run fine from a cmd window or a batch file (elevated and also when I don't "run as admin"). I also receive a dll registration successful message, which is something I never receive when I manually register the program dll.
    You get the successfull message only if you DON'T use /s as far as I know !!

    regsvr32 command should run elevated otherwise it doesn't work. It has to set thing in HKLM or HKCR registry keys. It modifies part of registry normally unwriteable (but readable by all users).
      My Computer


  7. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #27

    regsvr32 ole32.dll (unelevated) gives this popup.
    regsvr32 /s ole32.dll (unelevated) gives no popup at all. It looks successfull.... but it isn't!

    You have to do it with elevated privileges!! And remove the /s for troubleshooting
    Attached Thumbnails Attached Thumbnails Can't run regsvr32 from .bat file, but can run from CMD-naamloos.png  
      My Computer


  8. Posts : 10,485
    W7 Pro SP1 64bit
       #28

    jamesaru said:
    UsernameIssues said:
    When you right click on the cmd prompt shortcut, do you get a popup that has User Account Control in the title?

    Try to register ole32 per post 21.
    No, I don't see UAC in the right click menu, is that what you mean?
    Yes, that is what I mean. Then it appears that you have UAC turned off.

    I'll leave you to work with Kaktussoft while I lurk.
      My Computer


  9. Posts : 10,485
    W7 Pro SP1 64bit
       #29

    Kaktussoft said:
    regsvr32 ole32.dll (unelevated) gives this popup.
    regsvr32 /s ole32.dll (unelevated) gives no popup at all. It looks successfull.... but it isn't!

    You have to do it with elevated privileges!! And remove the /s for troubleshooting
    Isn't every cmd prompt window "elevated" when UAC is off in an admin account?

    I do not think that it is possible for the OP to open an unelevated cmd prompt window.

    If I'm wrong - let me know. If I'm right, then it matters how you interpret the results the OP sees.
      My Computer


  10. Posts : 12
    Windows 7 Pro 64-bit
    Thread Starter
       #30

    Yeah, I think everything is elevated. When I open a cmd prompt it always says "Administrator". Thanks for all of your assistance in trying to troubleshoot this. As a workaround I'm going to try to install the necessary software in a VM and see if I have any luck. A couple of my colleagues have been able to install without issue so it seems specific to my machine.
      My Computer


 
Page 3 of 3 FirstFirst 123

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:14.
Find Us