Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9114881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:18:00+00:00 2026-06-17T04:18:00+00:00

All right, I’m not doing something right, and I need some help. Here’s what’s

  • 0

All right, I’m not doing something right, and I need some help. Here’s what’s happening:

  1. I have a “real” Authenticode certificate from Comodo that I have paid for.
  2. I’m trying to sign and deploy a WPF application written in Visual Studio 2012 and .NET 4.5.
  3. In the properties of the project, I have checked “Sign the ClickOnce manifests” and have chosen my certificate.
  4. I’m also using Comodo’s timestamp sever (http://timestamp.comodoca.com/authenticode)
  5. In the Publish tab and under the Prerequisites button, I have checked “Create setup program to install prerequisite components”.

When I build and publish, everything works! The setup.exe is signed with my Comodo certificate, so that’s good. Also, the .application file is signed with the Comodo certificate and my company name shows as the publisher — this is also good.

Here comes the problem: Once the application is downloaded to the client, Windows 8 throws up a warning about an untrusted program (MyProgram.exe) and the publisher is not my company name. So, everything is getting signed except for the actual executable.

I’ve tried adding a post-build script that uses signtool.exe on obj\Release\MyProgram.exe, but when I try to install the application, I get a manifest error stating that the hash values don’t match. In other words, the manifest is getting generated before the post-build event.

How do I sign my .exe and maintain the ClickOnce manifest’s integrity? Is there a simple way to do this or do I have to use mage.exe on every file, by hand (I hope not)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:18:01+00:00Added an answer on June 17, 2026 at 4:18 am

    Well, no one has jumped on this, but thankfully, I figured it out!

    Thanks to this question: "File has a different computed hash than specified in manifest" error when signing the EXE

    I was able to edit the project file’s XML (Unload the project, then choose “Edit myproject.csproj”) and added:

      <Target Name="SignOutput" AfterTargets="CoreCompile">
    <PropertyGroup>
      <TimestampServerUrl>http://timestamp.comodoca.com/authenticode</TimestampServerUrl>
      <ApplicationDescription>My Project Friendly Name</ApplicationDescription>
      <SigningCertificateCriteria>/n MyCertName</SigningCertificateCriteria>
    </PropertyGroup>
    <ItemGroup>
      <SignableFiles Include="$(ProjectDir)obj\$(ConfigurationName)\$(TargetName)$(TargetExt)" />
    </ItemGroup>
    <GetFrameworkSdkPath>
      <Output TaskParameter="Path" PropertyName="SdkPath" />
    </GetFrameworkSdkPath>
    <Exec Command="&quot;$(SdkPath)bin\signtool&quot; sign $(SigningCertificateCriteria) /d &quot;$(ApplicationDescription)&quot; /t &quot;$(TimestampServerUrl)&quot; &quot;%(SignableFiles.Identity)&quot;" />
    

    I had to move the signtool.exe file into the SDK folder (C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin, in my case), but after that it worked like a charm!

    I hope this helps someone else in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All right real quick question guys. I know that C# Forms have the OnPaint()
All right, so here's a challenge for all you SQL pros: I have a
All right, here's the setup: I have a table in a form whose contents
All right, so this is only a test example (not polished) of something I
All right. The problem here is pretty abstract. Bear with me. I have a
All right, do not get angry now, I know there are several questions about
All right so I tried using the button set. So fair, I have been
I'm using the OnIdle-event for some simple animations, and it works all right. The
All right, I've seen some posts asking almost the same thing but the points
All right so I have the following code and all it does is put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.