$light = (Get-Command 'light').Source $lightArgs...
# general
r
$light = (Get-Command 'light').Source $lightArgs = @( '-ext WiXUtilExtension', "$outputPath\osquery.wixobj", "-o $msi" ) Start-OsqueryProcess $light $lightArgs if (-not (Test-Path $msi)) { $msg = "[-] MSI Creation failed." Write-Host $msg -ForegroundColor Red } else { $msg = "[+] MSI Package written to $msi" Write-Host $msg -ForegroundColor Green }