Background information
I recently installed Microsoft Office 2013 on my server to deploy using RemoteApp to all of my home computers. After installation, when I attempted to run the programs, it gave me an error that in order to run Office on a PC with Terminal Services installed, you must be using a Volume License version of Office. Then, I uninstalled all of the Remote Desktop server roles and instead deployed them manually by disabling the allow list, and it worked fine either running locally or deployed as RemoteApps.
What is the allow list?
On a normal RemoteApp deployment, there is a list of applications that are allowed to run as RemoteApps, and the only way to configure that is to use the Terminal Services server role. However, it is possible to go into the Windows Registry and disable the list so that anyone can access any application on the server as a RemoteApp by knowing the path to it, without having to install the Terminal Services server role.
This made me curious about something...
My question
Can an application detect that it is running as a RemoteApp this way (with the allow list disabled) and refuse to launch if it is, and only launch if it is running on the local server desktop?