You’re trying to install a ClickOnce application and get an error message saying: “Your administrator has blocked this application because it potentially poses a security risk to your computer”:
The ClickOnce trust prompt is disabled on your operating system, so instead of a dialog (prompt) which allows you to either proceed with the installation or not, you just get the message above.
You can change the trust pompt by editing the registry subkeys under:
\HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\.NETFramework\Security\TrustManager\PromptingLevelThere are five security zones for which you will need to edit the subkey.
Each subkey can have one of the following values:
- Disabled: No trust prompt is shown, instead you get the 'Administrator Has Blocked This Application From Installing' error.
- Enabled: A trust prompt is shown..
- AuthenticodeRequired: A trust prompt is shown only for signed applications (other applications cannot be installed). It is recomended to set each subkey to 'Enabled'.
Trust prompt example
You should now see the trust prompt option in the security warning.