Tuesday 19 June 2018

Unable to Install ClickOnce Application due to Security Settings (Windows 10)


When attempting to install a Microsoft-signed ClickOnce application, an error appears stating "Your administrator has blocked this application because it potentially poses a security risk to your computer" and "Your security settings do not allow this application to be installed on your computer".


As the administrator who would have set said policies, I cannot for the life of me figure out why this is being blocked for just one user and not other users whose PCs are based off the same image and why it works for other users who should be enjoying the same privileges as the user who is receiving the following message. Note that the exact same domain group policies are applied to this user that is experiencing the error and to users who are not receiving the error.


Imgur


Even attempting to run the application "as an administrator" does not solve the issue. The event logs show no errors, and I cannot otherwise find any logs to help diagnose the issue.


What local policies or settings would allow or deny this application?



Answer



This is caused by the "ClickOnce Trust Prompt Behavior": https://msdn.microsoft.com/en-us/library/ee308453.aspx


To adjust this, simply change the values in the Registry and you should be able to install the application.



To enable the ClickOnce trust prompt by using the registry editor Open the registry editor:


Click Start, and then click Run.


In the Open box, type regedit, and then click OK.


Find the following registry key:


\HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\.NETFramework\Security\TrustManager\PromptingLevel


If the key does not exist, create it.


Add the following subkeys as String Value, if they do not already exist, with the associated values shown in the following table.



Table Image


On my computer, the values were set to "Disabled" and I have no clue which application did that. I changed the values to default and now everything works again like it should.


Or you can just delete the key "TrustManager" itself and everything is working as well.



No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...