Modify

Opened 9 years ago

Closed 9 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 by anonymous, 9 years ago

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 by Jos, 9 years ago

Resolution: No Bug
Status: newclosed

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

Jos

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.