04-26-2016 07:12 AM
hello
My VI is talking to an activeX control that is allready installed in the target computer and used by other programs
problem: depending on the computer, the .OCX file is not at the same location, and the "refnum automation" available in labview wants me to enter a hard link.
I would like to store the link in an .ini file and send it to the "automation open" at initialisation
do you have advise?
05-19-2016 03:17 AM
Hello,
I didn't made this test but even though the OCX file is stored in an other path, it is still register in the computer and it should find it. Once again I didn't made the test so I'm not sure 100%.
If not, you can workaround this issue by regestring the OCX at the same location when the you are installing your application. You can run an exe after the installation of your application to force the registration by command line using this document.
http://digital.ni.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A
You can add this exe or bat file in build specifcation for your installer in the "advanced tab"
Paolo_P
Certified TestStand Architect
Certified LabVIEW Architect
National Instruments France