views:

24

answers:

2

How might I go about creating an application that does not need that "Publisher Cannot be verified" window. How can I get my WinForms app in a .exe file so that I can just click it and it runs, not asking me to do anything? maybe this can be done by disabling ClickOnce but how can you do that in VS2010 EXPRESS?

A: 

Using ClickOnce involves opening a link in a browser that ends in ".application", but it sounds like you're just launching a normal EXE from your local machine, so I don't think ClickOnce is involved.

Did you copy the file to your machine across a network? Right-click on the EXE, open Properties, and see if there's an "Unblock" button at the bottom of the window. If so, click it.

The "publisher cannot be verified" message relates to code signing. Like I said above, you should be able to tell Windows not to be so strict with that file, but if you really need to get signed, you could start with MSDN's Introduction to Code Signing.

Rory MacLeod
A: 

Are you using ClickOnce deployment? You can not get rid of the "Unknown publisher" window unless you have a valid certificate with a trusted publisher, and you install it on the user's machine.

RobinDotNet