cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rguggisberg
Level 13

How to tell If Installing via RDP?

Our application is sometimes installed via RDP and that has been working fine. Recently we added better graphics capabilty that requires better graphics hardware. So we have a test that runs to give us a score. I launch that test from an InstallScript CA. The problem is that the graphics test is done on the local machine (of course). Is there a way that I can tell from inside my CA that the install is being done via RDP so that I can put up a pop up message and skip this test?
Many Thanks,
Ron
Labels (1)
0 Kudos
(2) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

There is a property set by MSI called RemoteTSAdmin that might help. However, it does not seem to be set in any installs I test through a Remote Desktop session (the property docs indicate a specific case that sets the property).

You may try calling a Win32 API such as IsOS (passing OS_TERMINALCLIENT) or GetSystemMetrics (passing SM_REMOTESESSION) from your script custom action to make this determination.
0 Kudos
rguggisberg
Level 13

Thanks Josh.
I used GetSystemMetrics (passing SM_REMOTESESSION) as you suggested and that works.
0 Kudos