title: How do I detect whether I'm installing on a Terminal Server in an InnoSetup script?
body: <p>My setup should behave slightly differently when the program is installed on a Terminal Server. I know about <code>GetSystemMetrics(SM_REMOTESESSION)</code> but as far as I understood that will only tell me whether I'm running inside a RDP session. It would not catch the case where the server admin is logged on locally to install software, or would it?</p>
  
  <p>Checking for the Terminal Server service does not appear to be viable either as that also runs on workstations when Remote Desktop has been enabled. I need to differentiate this from a true TS that allows multiple concurrent logon sessions.</p>
  
  <p>Isn't there any other service or registry key that I check for?</p>