I use the #AutoIt3Wrapper_Res_Fileversion and #AutoIt3Wrapper_Res_FileVersion_AutoIncrement compiler directives and find them very useful. Is there a way that I can determine the AutoIt3Wrapper_Res_FileVersion value at runtime from within the script?
I recognize that if I'm running a compiled .EXE I can get the version number by using FileGetVersion(@ScriptFullPath), but I want to be able to find this value whether I'm running script or an EXE. I would think it should be available, since it's
IniRead() anyone?
#cs
[FileVersion]
#ce
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_Fileversion=1.0.0.2
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
MsgBox(0, "Version:", _GetVersion())
Func _GetVersion()
If @Compiled Then
Return FileGetVersion(@AutoItExe)
Else
Return IniRead(@ScriptFullPath, "FileVersion", "#AutoIt3Wrapper_Res_Fileversion", "0.0.0.0")
EndIf
EndFunc