LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the installer version in the "Edit Installer" dialog window?

Hi,

When executing Build>>Distribution>>Edit in LabWindows/CVI, it will popup a dialog window. In that window it has the a field "Installer Version:".
How can I get the installer version in my LabWindows/CVI program?

Thanks.
0 Kudos
Message 1 of 4
(3,616 Views)

Hi Joseph,

I'm afraid there is a misunderstanding. The installer version is a version number that you can choose yourself. I recommand choosing the same version as your program version number (if you have some version management). The version number you entered will be shown in the installer when a user installs your program.

Quick example: You write a program called Prog. The first time you release this program, choose version "01.00.00". Then you fix some bugs and do a second program release. Now you can choose "01.00.01" as Installer Version. After some changes and added features, you release your program again. Now, choose Installer Version "01.021.00". Then in the next release, you completely improve your user interface and do some other major changes. Then you could choose "02.00.00" as the Installer Version.

This is just the  way I am working...

0 Kudos
Message 2 of 4
(3,607 Views)
Hi Joseph,

Actually, if I understand correctly, you're interested in giving your installed application a way to query the Installer Version.  There is no simple function that will do this, but we have provided you a way to install this information to the machine via registry keys.  You can create a registry hierarchy for your application on the Registry Keys tab.  For example, if your application is named MyApp, you can create the key value HKEY_LOCAL_MACHINE\SOFTWARE\MyApp\version:"%version" (where MyApp is a key, version is the name of a value you create under that key, and "%version" is the actual value).  The %version symbol will be expanded to the Installer Version when installed.  Refer to the help for more details and other % symbols you might find useful.

Your application would then have to read this information from the registry using functions like RegReadString, found in the Windows Registry section of the Programmer's Toolbox library.

I hope you find this a suitable solution.

Mert A.
National Instruments
0 Kudos
Message 3 of 4
(3,596 Views)
Thanks for all your help
0 Kudos
Message 4 of 4
(3,567 Views)