Can I avoid the prompt “Do you want to run this application” using ClickOnce?

We would like to deploy the application through ClickOnce, but you really need to double-click. That is, once per link - at least one more time in the "Do you want to run this application" dialog box (for the first time).

Can any kind of trust be created (through group policy or otherwise) on certain PCs so that the user never asks any questions. That is, we have already verified that the application is trusted, etc. just grab this url and it will start.

+6
clickonce
source share
3 answers

I do not think that it can be installed without this prompt. ClickOnce applications run from the Internet zone, and this prompts you to Internet Explorer. He cannot install the software without asking the user if he wants. Firefox downloads the .application file, and you need to double-click it to launch it. It simply downloads any software from the Internet and launches it.

RobinDotNet

+1
source share

Yes it is possible. You need Trusted Publisher and Trusted Root, as indicated by Tijani. This answer led me to this article (see below) that explains the use of ClickOnce certificates fully and clearly. I now have a ClickOnce pop-up application. This is finally one click away.

http://msdn.microsoft.com/en-us/library/ms996418.aspx

+3
source share

In my experience, I found out that you can avoid this message by signing your application with a certificate. Then the same certificate must be installed on your client machine in these two places: Trusted Publishers and Trusted Root Certification Authorities.

It worked perfectly for my XBAP applications in full trust mode.

+1
source share

All Articles