Anyone had issues with the latest agent msi instal...
# fleet
j
Anyone had issues with the latest agent msi installer? It was built on a mac. When I try to install using an msi on a test host just by double clicking, it runs then just closes. Looking at the logs, it seems like it tries to run an uninstall script and fails there, but I'm not adept at reading MSI logs. I've never successfully installed the agent on this device and checking in the usual places doesn't show any remnants of an install.
I have a previous version that's working, but I had to incorporate disabling Windows Defender SmartScreen then re-enabling it into the deployment because it's not signed. I think the newest version is supposed to be signed?
I think I found the issue, looks like it was the
installer_utils.ps1 -uninstallOrbit
portion of the install. This line (310):
$properties = Get-ItemProperty $_.PSPath  -ErrorAction "SilentlyContinue" |  Where-Object {($_.DisplayName -eq "Fleet osquery")}
And this line (352):
$properties = Get-ItemProperty $_.PSPath -ErrorAction "SilentlyContinue" |  Where-Object {($_.DisplayName -eq "osquery")}
Seem to have problems with registry keys in
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
that have brackets (probably other special characters?), in our case a BeyondTrust Remote Support key. Adding
-LiteralPath
got me the desired result (
Orbit was uninstalled.
😉 ) Corrected commands (respectively):
$properties = Get-ItemProperty -LiteralPath $_.PSPath  -ErrorAction "SilentlyContinue" |  Where-Object {($_.DisplayName -eq "Fleet osquery")}
$properties = Get-ItemProperty -LiteralPath $_.PSPath -ErrorAction "SilentlyContinue" |  Where-Object {($_.DisplayName -eq "osquery")}
j
I gotta run, but I forked the repo earlier and will try to get one in this weekend