Are you trying to reinstall Flight Simulator X?
If so, to resolve your current issue, we recommend checking the following article. This article contains more information and troubleshooting steps which we found helpful in resolving the issue.
Error 1722 when reinstalling Flight Simulator X https://support.microsoft.com/en-us/help/928080/error-1722-when-reinstalling-flight-simulator-x