LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Version Info values from within the source code

Hello. I want to set the version info variables from my software's source code. I know I can read them by using _TARGET_FILE_VERSION_ or _TARGET_PRODUCT_VERSION_ macros, but how do I actually write them?

Isn't there any way to alter Target Settings' Numeric Information/Text Information to take a value from a defined variable at compile time? Thank you.

0 Kudos
Message 1 of 2
(3,636 Views)

Hi,

 

You may want to try out some of the options listed in this older post:

http://forums.ni.com/t5/LabWindows-CVI/Set-EXE-DLL-build-file-version-information-to-increment/td-p/...

 

Specifically, CVI_AppSetProjectVersionInfo function in order to set these values.

 

You also might want to refer to the Windows information for Version Resources, which can be found at:

http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058%28v=vs.85%29.aspx

 

If you are looking to change version after compile, there are online examples for creating a tool to do this. However, it may cause issues depending on the method and how the file versioning is implemented.

Evan See
National Instruments
0 Kudos
Message 2 of 2
(3,608 Views)