Add InstallAnywhere self extracting archive to metadata extraction (#34874)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #34827 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [x] If paths of existing endpoints are modified without backwards compatibility, checked the frontend/CLI for any necessary changes ## Testing - [ ] Added/updated automated tests - [ ] Where appropriate, [automated tests simulate multiple hosts and test for host isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing) (updates to one hosts's records do not affect another) - [ ] QA'd all new/changed functionality manually For unreleased bug fixes in a release candidate, one of: - [ ] Confirmed that the fix is not expected to adversely impact load test results - [ ] Alerted the release DRI if additional load testing is needed
This commit is contained in:
@@ -0,0 +1 @@
|
||||
- add InstallAnywhere as a self-extracting archive for PE metadata extraction
|
||||
+2
-2
@@ -62,8 +62,8 @@ func ExtractPEMetadata(tfr *fleet.TempFileReader) (*InstallerMetadata, error) {
|
||||
productVersion := strings.TrimSpace(e["ProductVersion"])
|
||||
if productName != "" {
|
||||
productName = strings.TrimSpace(productName)
|
||||
if productName == "7-Zip" {
|
||||
// This may be a 7-Zip self-extracting archive.
|
||||
if productName == "7-Zip" || productName == "InstallAnywhere" {
|
||||
// This may be a 7-Zip or InstallAnywhere self-extracting archive.
|
||||
sfxName = productName
|
||||
sfxVersion = productVersion
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user