Jump to content
Sign in to follow this  

Error HRESULT E_FAIL - Agent_Install.exe

Recommended Posts

My coworker was testing our walkthroughs and ran the Agent_Uninstall.exe to cleanup an install and shortly afterwards attempted to reinstall the Labtech / Automate Agent but nothing would happen. This occurred on two servers in our lab. 


  1. We initially tried multiple things and found that the .msi would install without any issues but the .exe would not.
  2. From there we ran Agent_Install.exe /Log log.txt and output what was happening into a text file.
  3. The log outputted the following error - System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
    • Further down in the message i noticed at RemoteAgentBootstrapper.RemoteAgentBootstrapper.setupSecondaryAgentMsi() which made me realize that the .exe was just installing an .msi with parameters. 
  4. We started looking in C:\ProgramData\Package Cache\ and found about 4 folders. 2 that had LabTechRemoteAgent.msi and 2 that had LabTechRemoteAgent.exe.
  5. One of the folders that had .exe also contained a state.rsm file.
  6. Just as a hunch we moved the state.rsm file to the desktop and then the .exe started installing normally every time afterwards. 


I initially looked here - https://docs.connectwise.com/ConnectWise_Automate/ConnectWise_Automate_Documentation/040/060 but soon realized that it was not going to help us.

I hope this helps others that face this issue.  

~Sean K

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...