When trying to install something from a remote desktop connection, you get this error:
ERROR_INSTALL_REMOTE_PROHIBITED
Error 1645 (0x66D)
The Windows Installer does not permit installation from a Remote Desktop Connection.
This is because the Windows Installer doesn’t permit installation from the following type of location:
msiexec /i \\ComputerName\Drive\Application.msi
To get around this, a network share instead, such as:
msiexec /i \\ComputerName\ShareName\Application.msi
Alternatively map or copy the MSI file’s directory to a local drive on the remote desktop you are trying to install to.