Error message similar to following received when manually installing Agent:
SOURCEMGMT: Processing URL source list. MSI (c) Note: 1: 1402 2: UNKNOWN\URL 3: 2 MSI (c) Note: 1: 1706 2: -2147483647 3: package_name.msi MSI (c) SOURCEMGMT: Source is invalid due to missing/inaccessible package. MSI (c) Note: 1: 1706 2: -2147483647 3: package_name.msi MSI (c) SOURCEMGMT: Trying source C:\Temp\package_name.msi. MSI (c) SOURCEMGMT: Source is invalid due to invalid package code (product code doesn't match). MSI (c) Note: 1: 1706 2: -2147483646 3: package_name.msi
Please follow the instructions in this article.