LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Distribution kit and ActiveX Server

I've included an ActiveX Server in my Distribution Kit (flash.ocx) and checked the "Register Files as ActiveX server" option. This distribution kit installs all components successfully.
But the uninstall process removes the ActiveX even if it was already present.

Is it a way not to remove that ActiveX on uninstall process ?
0 Kudos
Message 1 of 3
(2,631 Views)
The CVi Distribution kit doesnt delete the activex control, it just unregisters it. Here is something you can try
Once you build the dist kit, you can edit the msi file created by using Orca. This will bring up a table. search for the string msiexec.exe /z and this will take you to the CustomActions table. Note down the name associated with that action and delete that row. Now go to the InstallExecuteSequence table and look for the action name you just noted down (or you can just do a search by the name of the action string). Delete that row. Now the installer will now unregister the activex control on uninstall.

You will need to modify the msi everytime you rebuild it.

Hope this helps
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(2,610 Views)
As a better solution to this problem you should find out if the provider of the ActiveX server has a merge module that you can use to distribute with CVI. The merge module, if implemented correctly, will do proper reference counting of the control/server and registration. This is teh prefered way to distribute 3rd party supplied libraries/controls.

To find out how to add merge modules to you distribution kit look at the PDF file: cdk_mod.pdf in the the [CVI]\bin directory.

Jeff
NI
0 Kudos
Message 3 of 3
(2,601 Views)