Reference/VIAddVersionKey: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=VIAddVersionKey= [/LANG=lang_id] keyname value Adds a field in the Version Tab of the File Properties. This can either be a field provided by the system or a user defined fie...")
 
mNo edit summary
 
Line 27: Line 27:
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Test Application"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Test Application"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "1.2.3"</highlight-nsis>
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "1.2.3"</highlight-nsis>
''Command introduced with NSIS v2.0''

Latest revision as of 11:27, 3 June 2013

VIAddVersionKey

[/LANG=lang_id] keyname value

Adds a field in the Version Tab of the File Properties. This can either be a field provided by the system or a user defined field. The following fields are provided by the System:

  • ProductName
  • Comments
  • CompanyName
  • LegalCopyright
  • FileDescription
  • FileVersion
  • ProductVersion
  • InternalName
  • LegalTrademarks
  • OriginalFilename
  • PrivateBuild
  • SpecialBuild

The name of these fields are translated on the target system, whereas user defined fields remain untranslated.

VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "Test Application"
VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "A test comment"
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "Fake company"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "Test Application is a trademark of Fake company"
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© Fake company"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Test Application"
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "1.2.3"

Command introduced with NSIS v2.0