Modify

Opened 7 years ago

Closed 7 years ago

#3522 closed Bug (No Bug)

FileGetVersion

Reported by: moderncareca@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.2 Severity: None
Keywords: FileVersion Cc:

Description

ConsoleWrite(FileGetVersion (@ScriptDir&"\SciTE4AutoIt3.exe", "FileVersion") &@CRLF)

Outputs ${MyVersion}

Whereas if there's no parameter, outputs the version correctly.

Other lines like:

ConsoleWrite(FileGetVersion (@ScriptDir&"\SciTE4AutoIt3.exe", "Comments") &@CRLF)
ConsoleWrite(FileGetVersion (@ScriptDir&"\SciTE4AutoIt3.exe", "CompanyName") &@CRLF)
ConsoleWrite(FileGetVersion (@ScriptDir&"\SciTE4AutoIt3.exe", "FileDescription") &@CRLF)

Work as intended and retrieve the strings.

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by anonymous

The output of ${MyVersion} is no bug as that actually returns what is (wrongly) stored in that section by the NSIS generated EXE.

1 VERSIONINFO
FILEVERSION 16,1224,1708,0
PRODUCTVERSION 16,1224,1708,0
FILEOS 0x4
FILETYPE 0x1
{
BLOCK "StringFileInfo"
{
	BLOCK "04090000"
	{
		VALUE "Comments", "Installer containing a modified SciTE version with many extra utilities."
		VALUE "CompanyName", "Jos van der Zande"
		VALUE "FileDescription", "SciTE4AutoIt3 full installer"
		VALUE "FileVersion", "${MyVersion}"
		VALUE "LegalCopyright", "© Jos van der Zande"
		VALUE "LegalTrademarks", "Jos van der Zande"
		VALUE "ProductName", "SciTE4AutoIt3"
	}
}

BLOCK "VarFileInfo"
{
	VALUE "Translation", 0x0409 0x0000  
}
}

Jos

comment:2 Changed 7 years ago by Jos

  • Resolution set to No Bug
  • Status changed from new to closed

FileGetVersion with a parameter will return the information found in the "StringFileInfo" block, so I am marking this as No-Bug.

Jos

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.