-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get FileVersionInfo
data from exe
#110235
Comments
Judging from Lines 28 to 34 in fe3d5b5
\VarFileInfo\Translation value nor any of the hardcoded guesses.
|
The version resource in TeamViewerQS_x64.exe has 0x04b00409 in its The StringFileInfo lookups in FileVersionInfo.GetVersionInfoForCodePage look like they have excess backslashes. That however shouldn't be the cause either, because .NET Framework has equivalent code. If you had been using FileVersionInfo on an operating system other than Windows, then it would not have been able to parse the Win32 version resource at all and ProductMajorPart would also have been zero. |
Tagging subscribers to this area: @tommcdon |
I think this might be Windows Defender or similar blocking that EXE. Looks like that file is detected as EUS:Win32/CustomCertEnterpriseBlock!cl. |
Description
When looking at the
System.Diagnostics.FileVersionInfo
output for the TeamViewer Quicksupport executable, I get all empty strings for fields likeProductName
andLegalCopyright
, while they do in fact exist, according to Windows Explorer:Reproduction Steps
This code will get a path to
TeamViewerQS_x64.exe
(see description above for download link), and print to console some of the properties from the file version info.Expected behavior
The expected output of the example code above should be (according to Windows Explorer):
Actual behavior
The actual output of the example code is:
Interesting to note is the version integers are correct.
Regression?
No response
Known Workarounds
No response
Configuration
I tried this on Windows 11, both .Net 8.0.400 and .Net 9.0.100. It also happens on Windows 10.
Other information
Considering the version integers are correct, perhaps this is some kind of string encoding issue? It appears that the TeamViewer QuickSupport exe is a compiled NSIS program, which may be relevant in helping to narrow this down.
The text was updated successfully, but these errors were encountered: