Difference between revisions of "$VERSIONINFO"

From QB64 Wiki
Jump to navigation Jump to search
imported>SMcNeill
m (-)
m (Nomalise Availability section text)
 
(2 intermediate revisions by one other user not shown)
Line 7: Line 7:
  
  
{{Parameters}}
+
{{PageParameters}}
 
* Text ''keys'' can be: '''CompanyName, FileDescription, InternalName, LegalCopyright, LegalTrademarks, OriginalFilename, ProductName, Web, Comments'''
 
* Text ''keys'' can be: '''CompanyName, FileDescription, InternalName, LegalCopyright, LegalTrademarks, OriginalFilename, ProductName, Web, Comments'''
 
* Numeric {{Parameter|keys}} can be:'''FILEVERSION#''' and '''PRODUCTVERSION#'''  
 
* Numeric {{Parameter|keys}} can be:'''FILEVERSION#''' and '''PRODUCTVERSION#'''  
Line 18: Line 18:
  
  
==Availability==
+
{{PageAvailability}}
* '''Build 20170429/52 and up'''.
+
* Build 20170429/52 and up.
  
  

Latest revision as of 03:17, 8 March 2021

The $VERSIONINFO metacommand adds text metadata to the resulting executable for identification purposes across the OS. Windows-only.


Syntax

$VERSIONINFO:key=value


Parameters

  • Text keys can be: CompanyName, FileDescription, InternalName, LegalCopyright, LegalTrademarks, OriginalFilename, ProductName, Web, Comments
  • Numeric keys can be:FILEVERSION# and PRODUCTVERSION#


Description

  • Text and numerical values are string literals without quotes entered by programmer. No variables are accepted. (variable names would be interpreted as literals).
  • Numeric key=value must be 4 comma-separated numerical text values entered by programmer which usually stand for major, minor, revision and build numbers).
  • Not available in Linux or macOS.


Availability

  • Build 20170429/52 and up.


Examples

Example: Adding metadata to a Windows exe compiled with QB64:

$VERSIONINFO:CompanyName=Your company name goes here $VERSIONINFO:FILEVERSION#=1,0,0,0 $VERSIONINFO:PRODUCTVERSION#=1,0,0,0


See also



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page