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