Skip to content
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

[New Feature]: Fetch Metadata from MSI and EXE details #141

Open
OfficialEsco opened this issue Jan 25, 2022 · 3 comments
Open

[New Feature]: Fetch Metadata from MSI and EXE details #141

OfficialEsco opened this issue Jan 25, 2022 · 3 comments

Comments

@OfficialEsco
Copy link
Collaborator

OfficialEsco commented Jan 25, 2022

Description of the new feature/enhancement

Just making the issue so its here =)

Proposed technical implementation details (optional)

For MSI:

Note to self - This function will allow for some fields like copyright to be filled automatically for some installers, of all types

Originally posted by @Trenly in #140 (comment)

For EXE:
(Get-Item 'C:\Users\User\Downloads\Firefox Setup 96.0.2.exe').VersionInfo | Format-List *

Important fields seems to be:

  • FileVersionRaw (Suggested version, this field seems most accurate, however not 100%)
  • Language (Installer Locale)
  • CompanyName (Suggested Publisher)
  • FileDescription (Suggested PackageName)
  • LegalCopyright (Suggested Copyright)

Addition to #108

@Trenly
Copy link
Owner

Trenly commented Jan 25, 2022

You read my mind :)

@vedantmgoyal9
Copy link

vedantmgoyal9 commented Feb 13, 2022

Can someone please tell which of these is the most accurate property to get PackageVersion of MSI/EXE:

  • ProductVersion
  • FileVersion
  • FileVersionRaw
  • ProductVersionRaw

I am building a function for the automation to get PackageVersion for some packages whose API/Source doesn't output the correct version, or the API only gives InstallerUrl.

@OfficialEsco
Copy link
Collaborator Author

Can someone please tell which of these is the most accurate property to get PackageVersion of MSI/EXE:

As i said in the OP, FileVersionRaw is the most accurate according to my testing.
If you want real data you can download 100 installers and compare all 4 fields (the Raw fields will always be best AFAIK)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants