This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to tell If Installing via RDP?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2008
10:01 AM
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
Many Thanks,
Ron
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2008
02:29 PM
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.
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2008
10:55 AM
Thanks Josh.
I used GetSystemMetrics (passing SM_REMOTESESSION) as you suggested and that works.
I used GetSystemMetrics (passing SM_REMOTESESSION) as you suggested and that works.