Difference between revisions of "$VERSIONINFO"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
(Created page with '{{DISPLAYTITLE:$VERSIONINFO}} {{PageSyntax}} {{Parameters}} {{PageDescription}} {{PageErrors}} Example: {{CodeStart}} {{CodeEnd}} {{PageSeeAlso}} {{PageNavigati…')
 
imported>Clippy
Line 1: Line 1:
{{DISPLAYTITLE:$VERSIONINFO}}   
{{DISPLAYTITLE:$VERSIONINFO}}   
 
The '''$VERSIONINFO''' GL [[Metacommand]] adds programmer text metadata to '''Windows only''' binaries for identification purposes across the OS.




{{PageSyntax}}
{{PageSyntax}}
'''$VERSIONINFO:''' ''key'''''='''''value''




{{Parameters}}
{{Parameters}}
* Text ''keys'': '''CompanyName, FileDescription, InternalName, LegalCopyright, LegalTrademarks, OriginalFilename, ProductName, Web, Comments'''
* Numeric ''keys'':'''FILEVERSION#''' and '''PRODUCTVERSION#'''




{{PageDescription}}
{{PageDescription}}
* 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)
* Available starting with build 20170429/52 (released on April 29th 2017)




{{PageErrors}}
Example: Adding metadata to a Windows exe compiled with QB64:
 
Example:
{{CodeStart}}
{{CodeStart}}
{{Cl|$VERSIONINFO}}:CompanyName=Your company name goes here
{{Cl|$VERSIONINFO}}:FILEVERSION#=1,0,0,0
{{Cl|$VERSIONINFO}}:PRODUCTVERSION#=1,0,0,0
{{CodeEnd}}  
{{CodeEnd}}  




{{PageSeeAlso}}
{{PageSeeAlso}}
* [[$EXEICON]]
* [[_ICON]]
 


{{PageNavigation}}
{{PageNavigation}}

Revision as of 17:54, 5 May 2017

The $VERSIONINFO GL Metacommand adds programmer text metadata to Windows only binaries for identification purposes across the OS.


Syntax

$VERSIONINFO: key=value


Parameters

  • Text keys: CompanyName, FileDescription, InternalName, LegalCopyright, LegalTrademarks, OriginalFilename, ProductName, Web, Comments
  • Numeric keys: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)
  • Available starting with build 20170429/52 (released on April 29th 2017)


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