Skip to content

File_GetVersion

Returns the version of the specified file

File_GetVersion(sFile, bMustExist) As Boolean

Filename

File must exist

Result will be stored in gsValue. If the file has no version information, or doesn’t exist and bMustExist is False, gsValue is empty. Function will return false if file does not exist and bMustExist is true

If bStatus Then bStatus = File_GetVersion(gsProgramFiles & "\CapaInstaller\Agent\CIAgent.exe", True)
If bStatus Then bStatus = Job_Writelog("Custom", "Current version of CIAgent.exe is : " & gsValue, bStatus, True)

Scripting Guidelines

File_GetFileDateCreated File_GetLanguage File_GetShortPath Constants Package Property Variables