+ Reply to Thread
Results 1 to 6 of 6

Thread: registering OCX files in Windows 10

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default registering OCX files in Windows 10

    We install an old VB6 program, which includes several older .ocx files in the Program Files (X86) folder.
    We are using the Run Program command to run regsvr32.exe to register the .OCX files.
    However, after install, we get an error message 339 saying the OCX or one of its components not correctly registered, and we then have to open the command prompt as admin and manually register the files.

    Is there a better way to register old OCX files in Windows 10?

    Details for Run Program command:
    Target = %SYS32DIR%
    Command Line = /s %_SB_INSTALLDIR%/COMCT232.OCX
    Default Directory = %_SB_INSTALLDIR%
    The following are checked :
    Wait for program, Use ShellexecuteEx, Run elevated from non elevated
    Conditions = OS independent (all checked)
    Feature: Always Install

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: registering OCX files in Windows 10

    Hello Jeff,

    A better way would be File Properties -> Advanced Tab -> "Register as OCX/DLL/EXE/TLB" checkbox.

    Does this help?

    Friedrich

  3. #3

    Default Re: registering OCX files in Windows 10

    The files are downloaded and extracted from a zip file into the installation directory. How do I then set the File Properties?

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: registering OCX files in Windows 10

    Then you can use the "Register File Operation..." script function and set the "Queue existing OCXs/DLLs/EXEs/TLBs file for self registration" or "Register OCXs/DLLs/EXEs/TLBs file immediately" options.

    Does this help?

    BTW, but the question is, why does your use of regsvr32.exe fail. You need administrator execution level privileges to "self-register" files. Make sure that your setup.exe execution level is set to the default "requireAdministrator".

    Friedrich

  5. #5
    Unregistered Guest

    Default Re: registering OCX files in Windows 10

    Quote Originally Posted by linder View Post
    Then you can use the "Register File Operation..." script function and set the "Queue existing OCXs/DLLs/EXEs/TLBs file for self registration" or "Register OCXs/DLLs/EXEs/TLBs file immediately" options.

    Does this help?

    BTW, but the question is, why does your use of regsvr32.exe fail. You need administrator execution level privileges to "self-register" files. Make sure that your setup.exe execution level is set to the default "requireAdministrator".

    Friedrich
    The "Register OCXs/DLLs/EXEs/TLBs file immediately" option worked. I added an include script with all of the .ocx files to be registered. The execution level was already set to "requireAdministrator".

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: registering OCX files in Windows 10

    Perfect! Thanks for the update.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •