Windows: Troubleshooting the installation of the agent
Windows agents install fails
If the Windows agent install fails, you should erase any leftovers from previous installations/attempts and reinstall the agent. Of course as with any Windows troubleshooting, make sure you reboot before you resort to more drastic steps.
The steps to follow are:
- Make sure the agent isn't running
- If
C:\ProgramData\Nanitor\
exists, remove it - If
C:\Program Files\Nanitor\
exists, remove it - Remove any leftover Registry entries. Search for these and remove if found:
- HKLM\Software\Nanitor
- HKLM\system\controlset001\services\nanitor agent
- HKLM\system\currentcontrolset\services\nanitor agent
- Any Nanitor values in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders. An easy way to find these is with the command
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders /v /f nanitor
- Any Nanitor value or data in HKLM\SOFTWARE\classes\installer\products. An easy way to find these is with the command
reg query HKLM\SOFTWARE\classes\installer\products /s /v /k /d /f nanitor
You could also just go to our public Github Repo and grab agent-installation/nanitor-msi-fix.exe which does all of this for you automatically.
Make sure you reboot before trying to install again.