|
Hi all - I'm new to .Net Windows Forms. I've developed a simple application that is supposed to be deployed to every client machine in my company. I plan on running it from a central location using the Online Only option. We want to run this application every day via the login script that runs every time the user logs into a computer - in other words without user intervention. However, the first time the application runs on a machine, it tells the user that the publisher is unverified and asks if they want to trust the publisher. The application needs to run without this happening. How can I accomplish this?
Thanks very much in advance for your help. |
| Melanie Peterson Friday, September 04, 2009 4:21 PM |
I think in order to get around the prompt, you have to install the certificate you used to sign the deployment on the user's machine. Can you try it with one user and see if it works?
You can install the certificate using the certmgr.exe that is in c:\program files\microsoft sdks\windows\v6.a\bin\ folder.
RobinDotNet Click here to visit my ClickOnce blog!- Marked As Answer byKira QianMSFT, ModeratorFriday, September 11, 2009 8:08 AM
- Unmarked As Answer byMelanie Peterson Thursday, September 17, 2009 6:45 PM
-
|
| RobinDotNet Saturday, September 05, 2009 5:24 PM |
I have2 certmgr.exe files on my development machine at:
Microsoft Visual Studio 8\Common7\Tools\Bin
and
Microsoft Visual Studio 8\SDK\v2.0\Bin
I do not have this file on the client machine. I'm guessing if I run this (which one?) from the development machine, it'll ask me where I want to install the certificate? Is that right? |
| Melanie Peterson Tuesday, September 15, 2009 4:29 PM |
No, you need to copy it to the client machine and run it. You can put the certificate on the client machine and double-click on it and see what Windows does. It might install it for you, I'm not sure. RobinDotNet Click here to visit my ClickOnce blog! |
| RobinDotNet Wednesday, September 16, 2009 10:49 PM |
Does it matter which one I copy? I've got two, one in
Microsoft Visual Studio 8\Common7\Tools\Bin
and one in
Microsoft Visual Studio 8\SDK\v2.0\Bin
|
| Melanie Peterson Thursday, September 17, 2009 1:52 PM |
BTW - Just copying the certificate to the client machine does install the certificate, but the application still requires user intervention to run it. If I copy the certmgr.exe from Microsoft Visual Studio 8\SDK\v2.0\Bin and import the certificate that way, it installs, but again the application requires user intervention the first time. I need some way to automate this so that there is no user intervention requires. This solution must also be scriptable; manually installing a certificate on each user's PC is not the solution we're looking for. If anyone has any ideas, they'd be greatly appreciated.
Thanks! |
| Melanie Peterson Thursday, September 17, 2009 4:04 PM |
I'm sorry, I don't know of any way to install a certificate on a user's machine without prompting him for permission. This is a security issue. If you could do that, then absolutely anyone could install a certificate on your machine without you knowing about it, and then they could install software that does anything, including wipe your hard drive, and it would appear to be a valid certified application. RobinDotNet Click here to visit my ClickOnce blog! |
| RobinDotNet Friday, September 25, 2009 3:29 AM |