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
\bindirectory 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.inifile or theinstall.reg.txtfile to make sure that the appropriate files are referenced. -
Update the
HOMEentry 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.regfile into the Windows Registry when the application is installed. -
Install the Viewing ActiveX control (
kvocx.ocx) to the\bindirectory 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
-sto suppress any dialog boxes when registering the OCX.To unregister the ActiveX control, run the command:
regsvr32 -u C:\MyApp\kvocx.ocx