LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I find out what version of CVI RTE is installed?

I am trying to detect if CVI 7.0 RTE is installed from within a application installer (created in install shield). However there does not appear to be any registry enteries to help me.
0 Kudos
Message 1 of 6
(3,900 Views)
There is a registry key for the RTE being there (HKLM\SOFTWARE\National Instruments\CVI Run-Time Engine\cvirte), it does not contain version information. If you are looking for a specific version you must do the following.

1) Check if it is there using the Reg Key above.
2) Use the AppSearch, Signature, and DrLocator tables to find the version you are looking for as a Property. Be sure to make the search fast by narrowing the search to the system\cvirte directory.

This will populate the property if it finds the file with many different options(versionMin is just one). Ususally tools like InstallShield call it System Search or something like that.

Jeff
NI
Message 2 of 6
(3,900 Views)
Thanks Jeff. I have updated my InstallShield script to check the registry first to see if the RTE is installed.
I have also found that the cvirte.dll has a GetCVIVersion() function I can call from the installer script. I check the returned value is 700, and if it is not the installer sets the default to install the CVI 7.0 RTE.

Chris
Motorola
0 Kudos
Message 3 of 6
(3,900 Views)

what is wrong with CVI predefined macro  _CVI_

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 4 of 6
(3,415 Views)
> what is wrong with CVI predefined macro  _CVI_

It tells you the version of the RTE the compiling computer had, not the
version the computer running the program has.
--
Guillaume Dargaud
http://www.gdargaud.net/
0 Kudos
Message 5 of 6
(3,406 Views)

Hello test_man, what an old thread you've find!

I don't know of any issue relating that macro: are you having problems with that macro?

 

In any case, please consider that in case of new issues it is better to open a new thread rather than reviving such an old one. Consider to post a link to the old thread in case informations in it can be of some help to understand the situation.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 6
(3,405 Views)