11-28-2019 05:19 AM
Hello,
I just upgrade my CVI version from 2012 to 2019, so I’ve the both version my computer.
The creation of my application setup is automatized through Jenkins pipeline and I’m using the “Target Builder” tools to build my projects.
But even I select the target in the “Users\Public\Documents\National Instruments\CVI2012\samples\activex\cvi” directory, my projects are built by using the CVI 2019 version and not the 2012 one.
Someone know how to enforce the version selection with the “Target Builder” tools?
Thanks a lot for your feedback 😀
Solved! Go to Solution.
12-04-2019 10:41 AM
If you're trying to use ActiveX to build your projects, you need to know that Windows will always use the registered version of the CVI ActiveX server, regardless of your working directory. For the case of CVI, this will typically be whichever version of CVI you ran most recently. You can see which version is registered by inspecting the following registry key:
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{5AB151E3-414A-11D0-A62C-0020AF16F78E}\LocalServer32
If you care about which version of CVI you use to build your project, I recommend that you not use the ActiveX server. You could instead use the command-line compiler, which allows you to specify the compiler's executable directly and therefore which version of CVI you want to use.
Luis
12-05-2019 03:34 AM
Thanks a lot Luis, your solution is effectively the best way !