How to ensure that the "Publisher" field is populated for my ClickOnce * Bootstrapper *

I have an application that I am deploying through ClickOnce. I do all the manifest generation / signature in the MSBuild script. Until today, we have used a self-generated certificate, but now I have a certificate from Verisign.

I can successfully sign my manifests with mage.exe, and the new certificate and Publisher field are displayed correctly when I run "myapp.Application" to install the application.

However, if I run Bootstrapper (setup.exe), which I created for the application, the installer now says that Publisher is unknown (as if I had not signed my manifests). I can't figure out what I need to do for Bootstrapper in order to get the publisher to display correctly in the installation confirmation dialog. I tried to sign Bootstrapper using SignTool, but that does not seem to matter.

The pseudocode is as follows:

  • Create application manifest (using mage.exe)
  • Sign application manifest (using mage.exe)
  • Create a deployment manifest (using the GenerateDeploymentManifest MSBuild task)
  • manifest deployment character (using mage.exe)
  • Generate bootloader (using the GenerateBootstrapper task)
  • Boostrapper Icon (using SignTool.exe)

Please post my code with pleasure if there are no obvious problems with my workflow / tools.

Thanks in advance!

+4
source share
1 answer

You tried to sign setup.exe using SignTool.

If this does not work, add the "BeforePublish" Target by editing the .csproj application file.

Check here and see how this helps.

Do not forget to mark as an answer if this helps ... !!!

0
source

Source: https://habr.com/ru/post/1336885/


All Articles