Skip to content

Logic error with existing installation detection #140

@athlonduke

Description

@athlonduke

When implementing the current powershell deployment script, I came across a logic error in the detection. It appears there are two different checks for an existing installation.
check 1: Line 161 - checks for HuntressAgent.exe
check 2: Line 1114 - checks for more than 1 file in the huntress directory

My deployment was for a new install with an existing folder containing an old log file, so that's how I found this. I would think it would be better to combine the folder contents test within the test at 161 vs doing another completely separate test at 1114. Then, change the logic at 1114 to use the results of $isHuntressInstalled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions