Skip to content

Commit

Permalink
Wait for MSI install
Browse files Browse the repository at this point in the history
msiexec launches the installation of Fibratus in the background and returns immediately. The side effect is that the next step, will never found the Fibratus binary ready to run the rules validation. The solution consists of waiting for the msiexec process to complete before executing the next step
  • Loading branch information
rabbitstack committed Dec 16, 2023
1 parent 4a681a5 commit f3c9276
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ jobs:
search_artifacts: true
- name: Install Fibratus
run: |
msiexec /i fibratus-0.0.0-amd64.msi /qn /l*v install.log || cat install.log
$exec = Start-Process "msiexec" "/i fibratus-0.0.0-amd64.msi /qn /l*! install.log" -NoNewWindow -PassThru;
$tail = Start-Process "powershell" "Get-Content -Path install.log -Wait" -NoNewWindow -PassThru;
$exec.WaitForExit();
$tail.Kill()
- name: Validate rules
run: |
$env:PATH += ";$env:ProgramFiles\Fibratus\Bin"
fibratus rules validate

0 comments on commit f3c9276

Please sign in to comment.