$VERSIONINFO: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
(Created page with "{{DISPLAYTITLE:$VERSIONINFO}} The $VERSIONINFO metacommand adds text metadata to the resulting executable for identification purposes across the OS. Windows-only. {{PageSyntax}} : $VERSIONINFO:{{Parameter|key}}={{Parameter|value}} {{Parameters}} * Text ''keys'' can be: '''CompanyName, FileDescription, InternalName, LegalCopyright, LegalTrademarks, OriginalFilename, ProductName, Web, Comments''' * Numeric {{Parameter|keys}} can be:'''FILEVERS...") |
No edit summary |
||
Line 18: | Line 18: | ||
{{PageAvailability}} | |||
* ''' | * '''QB64 1.2 and up''' (QB64 Team) | ||
* '''QBPE 0.5 and up''' (QB64 Phoenix Edition) | |||
Revision as of 23:27, 29 April 2022
The $VERSIONINFO metacommand adds text metadata to the resulting executable for identification purposes across the OS. Windows-only.
Syntax
- $VERSIONINFO:key=value
- 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
- QB64 1.2 and up (QB64 Team)
- QBPE 0.5 and up (QB64 Phoenix Edition)
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