I’m loading package at runtime via LoadPackage(). Let’s say after load I want to check the version of the package to ensure it’s the newest. How can I do that?
I’m loading package at runtime via LoadPackage() . Let’s say after load I want
Share
A package is just a special type of dll, So you can use the
GetFileVersionfunction defined in the SysUtils unit, this function returns the most significant 32 bits of the version number. so does not include the release and/or build numbers.If you want retrieve the full version number (with release and build numbers included) you can use the
GetFileVersionInfoSize,VerQueryValueandGetFileVersionInfoWinApi functions.