FileVersion and #FileVersion are expected to return different values. "#FileVersion" and "#ProductVersion" are 64-bit numbers, and are returned as comma-separated strings In the form "n1,n2,n3,n4", where n1 is the most significant word and n4 is the least significant word. The other fields each return a SINGLE 32-bit number.
By default the compiler uses the following default setting for an exe:
FileVersion 1.0
ProductVersion 1.0
The results from FileVerInfo, on said compiled exe, are also expected:
filename = DirScript():'dummy.exe'
FV = FileVerInfo(filename, "", "FileVersion") ; returns 1.0
PV = FileVerInfo(filename, "", "ProductVersion") ; returns 1.0
_FV = FileVerInfo(filename, "", "#FileVersion") ; returns 1,0,0,0
_PV = FileVerInfo(filename, "", "#ProductVersion") ; returns 1,0,0,0
CT = FileVerInfo(filename, "", "CompileTime") ; returns YMDHMS date of when the script is compiled
Exit
I am unable to reproduce a blank compile time using the current compiler.
Keep in mind that these settings are stored in a corresponding .cmp file ( in the same directory and the same root name as the source .wbt ) .
[Main]
Type=1
Src=dummy.wbt
Targ=C:\TEMP\dummy.exe
Icon=
CmpVersion=5
[Options]
TechWebPage=
UACManifestSelection=asInvoker
UACManifestUI=false
CodeSign=1
CodeSignDetails=
RunHidden=0
LargeExtractDest=0
PreventAutoExtract=0
[Version Info]
Comments=
CompanyName=Company name
FileDescription=dummy
FileVersion=1.0
InternalName=dummy.exe
LegalCopyright=Legal Copyright
LegalTrademarks=Legal Trademarks
OriginalFilename=dummy.exe
ProductName=dummy
ProductVersion=1.0
[Other Files]
Count=0
[Extenders]
Count=0
Once you successfully recompile using the latest version of the compiler those settings should be stored in the .cmp file.