Deploy ActiveX Control Applications
After you have built an application with Viewing ActiveX control, you must do the following:
-
Install all required files to the
\bin
directory of your application's installation directory. List of Files Required for Redistribution lists the components that must be redistributed with your application. It also shows the Dynamic Link Library (DLL) associated with each component. -
Review the
kvsdk.ini
file or theinstall.reg.txt
file to make sure that the appropriate files are referenced. -
Update the
HOME
entry in the initialization file or registry file with the complete path to where you are installing Viewing components. -
Specify whether you are using an initialization file or registry settings. See View Initialization Information.
-
If you are using an initialization file, install the file to the location specified by RegIniName when the application is installed.
-
If you are using the registry file, import the
install.reg
file into the Windows Registry when the application is installed. -
Install the Viewing ActiveX control (
kvocx.ocx
) to the\bin
directory of your application's installation directory and register the control in the system registry by running the following command:regsvr32 C:\MyApp\bin\kvocx.ocx
Add
-s
to suppress any dialog boxes when registering the OCX.To unregister the ActiveX control, run the command:
regsvr32 -u C:\MyApp\kvocx.ocx