Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Wintrust not found on machine/WinVerifyTrust returned -2146762749
 

Wintrust not found on machine/WinVerifyTrust returned -2146762749

Hi,
I have a Windows Installer that I am trying to adapt for use from the web. I generate setup.exe and Setup.msi files in VS 2008 although I have also used the standalone Bootstrapper Generator. The result is the same, when I download and run the setup.exe file, it downloads the msi file as I would expect but this exits very quickly. The last lines of the log file are shown below:

Download completed at 22/09/2009 10:21:52
WinVerifyTrust returned 0
File trusted
WinVerifyTrust returned -2146762749
Subject form unknown
Wintrust not found on machine
The wintrust DLL is in the system directory and I tried reregistering it but all to no avail. I still cannot install my exe/msi from the web.
Any ideas?

I have tried this from my Vista machine and from an XP VM - with the same result.

Many thanks,
-Paul
  • Changed Typepauldb Thursday, September 24, 2009 7:24 AM
  •  
pauldb  Tuesday, September 22, 2009 9:44 AM
Hi pauldb,

Do you mean the Wintrust dll should be located in the system directory in order to run your app?

If so, my suggestion is you can create a setup project for installing Wintrust dll and make that setup.exe as prerequisite. When you run the main app setup.exe, it will do a file check to see if Wintrust dll is existed. If not, it will launch the Wintrust installer to install it into system directory.

Hope this helps you. Please inform me the result.

Sincerely,
Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!
Kira Qian  Thursday, September 24, 2009 6:36 AM
No my application does not depend on WinTrust, AFAIK anyway, it is a signed installer though. However, I was seeing this whichever machine I tried it on. I now believe it was something wrong with my installer or where it was deployed - I have rebuilt it and deployed it to a different server and now I get beyond that problem. I've hit another problem but that's a different issue.

Many thanks for your reply, apologies for not withdrawing this message sooner.
-Paul
pauldb  Thursday, September 24, 2009 7:23 AM
This only occurs when the bootstrapper and MSI are hosted on a linux server.
Is it really necessary to have them hosted on a Windows server?
Thanks,
-Paul
pauldb  Wednesday, September 30, 2009 4:12 PM
That error is 0x800B0003, "The form specified for the subject is not one supported or known by the specified trust provider", so it may be related to it being Linux.
Phil Wilson
PhilWilson  Wednesday, September 30, 2009 8:45 PM

You can use google to search for other answers

Custom Search

More Threads

• Deploying a WPF App with Click Once Issue
• AppUpdater component remove microsoft office program short cut
• Are certificates dedicated to individual Click Once apps, or reusable?
• Operating System Limitation For ClickOnce?
• Running My Application After Install
• CLR error:8007000b
• Test project error with Clickonce: Could not find file 'icologo.ico' referenced by assembly.
• Isolated COM does not appear to work when referencing object from external library
• Embedding an image
• Accepting serial number in uppercase