Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Registering OC30.dll in Vista

Registering OC30.dll in Vista

Scheduled Pinned Locked Moved Windows API
helpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Simon P Stevens
    wrote on last edited by
    #1

    Hi, I've got a 3rd party component that we use in our product that uses OC30.dll. So I've packaged up OC30.dll in the installation. Problem is, that on Vista the installation always gives this error: --------------------------- Self-Registration Error --------------------------- The following files did not self-register or unregister: 1. C:\Windows\system32\OC30.DLL Error : 0x80040200 Manually, I can register the file fine, but unregistering always gives "The module "c:\Windows\System32\OC30.DLL" was loaded but the call to DllUnregisterServer failed with error code 0x80040201." Firstly, If I can register the file fine manually, why is the installation failing? (InstallShield 12 by the way, and it works fine on XP) Secondly, Why can't I unregister the file? The 3rd party component seems to work fine once I've manually registered OC30.dll Yes, the installation runs elevated & I'm using an elevated command prompt to do the manual reg/unreg. I've googled around, but all anything anyone says is about running elevated. Does anyone know anything about this & what I can do to fix it?

    Simon

    P R 2 Replies Last reply
    0
    • S Simon P Stevens

      Hi, I've got a 3rd party component that we use in our product that uses OC30.dll. So I've packaged up OC30.dll in the installation. Problem is, that on Vista the installation always gives this error: --------------------------- Self-Registration Error --------------------------- The following files did not self-register or unregister: 1. C:\Windows\system32\OC30.DLL Error : 0x80040200 Manually, I can register the file fine, but unregistering always gives "The module "c:\Windows\System32\OC30.DLL" was loaded but the call to DllUnregisterServer failed with error code 0x80040201." Firstly, If I can register the file fine manually, why is the installation failing? (InstallShield 12 by the way, and it works fine on XP) Secondly, Why can't I unregister the file? The 3rd party component seems to work fine once I've manually registered OC30.dll Yes, the installation runs elevated & I'm using an elevated command prompt to do the manual reg/unreg. I've googled around, but all anything anyone says is about running elevated. Does anyone know anything about this & what I can do to fix it?

      Simon

      P Offline
      P Offline
      Paresh Chitte
      wrote on last edited by
      #2

      http://www.codeproject.com/useritems/VistaElevator.asp[^] http://msdn2.microsoft.com/en-us/library/aa905330.aspx[^] Regards, Paresh.

      S 1 Reply Last reply
      0
      • P Paresh Chitte

        http://www.codeproject.com/useritems/VistaElevator.asp[^] http://msdn2.microsoft.com/en-us/library/aa905330.aspx[^] Regards, Paresh.

        S Offline
        S Offline
        Simon P Stevens
        wrote on last edited by
        #3

        Thanks, I've read these links, but all they seem to talk about is elevation. As I said in my first post, The installation program is running elevated, but still fails, and I am using an elevated command prompt when manually registering.

        Simon

        1 Reply Last reply
        0
        • S Simon P Stevens

          Hi, I've got a 3rd party component that we use in our product that uses OC30.dll. So I've packaged up OC30.dll in the installation. Problem is, that on Vista the installation always gives this error: --------------------------- Self-Registration Error --------------------------- The following files did not self-register or unregister: 1. C:\Windows\system32\OC30.DLL Error : 0x80040200 Manually, I can register the file fine, but unregistering always gives "The module "c:\Windows\System32\OC30.DLL" was loaded but the call to DllUnregisterServer failed with error code 0x80040201." Firstly, If I can register the file fine manually, why is the installation failing? (InstallShield 12 by the way, and it works fine on XP) Secondly, Why can't I unregister the file? The 3rd party component seems to work fine once I've manually registered OC30.dll Yes, the installation runs elevated & I'm using an elevated command prompt to do the manual reg/unreg. I've googled around, but all anything anyone says is about running elevated. Does anyone know anything about this & what I can do to fix it?

          Simon

          R Offline
          R Offline
          Rojan Gh
          wrote on last edited by
          #4

          Have you tried running the installer by right-clicking and choosing the "Run as administerator"? :)

          Sojaner!

          S 1 Reply Last reply
          0
          • R Rojan Gh

            Have you tried running the installer by right-clicking and choosing the "Run as administerator"? :)

            Sojaner!

            S Offline
            S Offline
            Simon P Stevens
            wrote on last edited by
            #5

            Yes. The installation runs elevated.

            Simon

            R 1 Reply Last reply
            0
            • S Simon P Stevens

              Yes. The installation runs elevated.

              Simon

              R Offline
              R Offline
              Rojan Gh
              wrote on last edited by
              #6

              Try this one too: Right-Click the installer file (exe file) and choose properties, in the compatibility tab, choose "Run this program in compatibility mode for:" and from the list choose the "Windows XP (Service Pack 2)", and down the window in the "Privilege Level" group box, check the "Run this program as an administerator" the click on ok and run the setup again. :):rose:

              Sojaner!

              S 1 Reply Last reply
              0
              • R Rojan Gh

                Try this one too: Right-Click the installer file (exe file) and choose properties, in the compatibility tab, choose "Run this program in compatibility mode for:" and from the list choose the "Windows XP (Service Pack 2)", and down the window in the "Privilege Level" group box, check the "Run this program as an administerator" the click on ok and run the setup again. :):rose:

                Sojaner!

                S Offline
                S Offline
                Simon P Stevens
                wrote on last edited by
                #7

                Yes, I've tried that. As I've said before, the installation already runs elevated, so that isn't the issue. Besides, requiring my users to change the setup exe to run in xp compatibility mode isn't an option I'm keen on. Thanks for trying though.

                Simon

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups