While attempting to install Remote Agent error message "The installer failed with an unexpected error: Exception has been thrown by the target of an invocation" occurs
After clicking OK, another error message pops up: "Setup has encountered a problem and needs to close".
Error "The installer failed with an unexpected error: Exception has been thrown by the target of an invocation".
Event Viewer - Application :
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Time: 9:35:39 AM
Computer: Computer Name
EventType clr20r3, P1 _setup.exe, P2 126.96.36.1995, P3 4d1cf7ee, P4 mscorlib, P5 188.8.131.52, P6 4889dc80, P7 20a2, P8 7, P9 n3ctrye2kn3c34sgl4zqyrbfte4m13nb, P10 NIL.
.NET Framework 2.0 might be corrupted or damaged.
1. Repair .netframework version 2.0 from Add/Remove programs.
2. Uninstall and Reinstall .net framework version 2.0.