Detect Standalone CDF vs Browser Plugin environment [duplicate]

Recently, Wolfram informed me that there's no way to have a Print button in a CDF running within a plugin environment since the plugin does not interact with the operating system. If you have a way to solve that, it would be great!

But now more importantly, since there are such significant differences between the 2 environments, including the security sandbox, is there any way to detect programmaticly in which environment the CDF is being displayed, so that one could adjust what is being displayed to the user, and what is not?

-

marked as duplicate by The Toad♦Mar 13 '13 at 23:24

CurrentValue["PluginEnabled"]

This is a good enough answer to get awarded an "answer", but as I recently found out, the full answer is a combination of a few things Dynamic@{$LicenseType, Developer$ProtectedMode, CurrentValue["PluginEnabled"]}` –  Gregory Klopper Mar 13 '13 at 23:23