简体   繁体   English

如何确保为ClickOnce * Bootstrapper填充“Publisher”字段*

[英]How do I ensure the “Publisher” field is populated for my ClickOnce *Bootstrapper*

I've got an application that I deploy via ClickOnce. 我有一个通过ClickOnce部署的应用程序。 I do all the manifest generation/signing in an MSBuild script. 我在MSBuild脚本中执行所有清单生成/签名。 Up until today we've been using a self-generated certificate, but now I've got a certificate from Verisign. 直到今天我们一直在使用自己生成的证书,但现在我已经获得了Verisign的证书。

I can successfully sign my manifests using mage.exe and the new certificate and the Publisher field is shown properly when I run "myapp.Application" to install the app. 我可以使用mage.exe成功签署我的清单,当我运行“myapp.Application”来安装应用程序时,新证书和Publisher字段会正确显示。

However, if I run the Bootstrapper (setup.exe) that I've generated for the app, the installer now says the Publisher is unknown (as if I haven't signed my manifests). 但是,如果我运行我为应用程序生成的Bootstrapper(setup.exe),安装程序现在说发布者是未知的(就好像我没有签署我的清单)。 I can't figure out what I need to do to the Bootstrapper to make the publisher show up properly in the install confirmation dialog. 我无法弄清楚我需要对Bootstrapper做什么才能让发布者在安装确认对话框中正确显示。 I've tried signing the Bootstrapper using SignTool but that doesn't seem to make a difference. 我尝试使用SignTool签署Bootstrapper,但这似乎没有什么区别。

Pseudo-code looks like: 伪代码看起来像:

  1. Generate App Manifest (using mage.exe) 生成App Manifest(使用mage.exe)
  2. Sign App Manifest (using mage.exe) 签署应用程序清单(使用mage.exe)
  3. Generate Deployment Manifest (using GenerateDeploymentManifest MSBuild task) 生成部署清单(使用GenerateDeploymentManifest MSBuild任务)
  4. Sign Deployment Manifest (using mage.exe) 签署部署清单(使用mage.exe)
  5. Generate Bootstrapper (using GenerateBootstrapper task) 生成Bootstrapper(使用GenerateBootstrapper任务)
  6. Sign Boostrapper (using SignTool.exe) Sign Boostrapper(使用SignTool.exe)

Happy to post my code if there's no obvious problems with my workflow/tooling. 如果我的工作流程/工具没有明显问题,很高兴发布我的代码。

Thanks in advance! 提前致谢!

Have you tried to sign the setup.exe using SignTool. 您是否尝试使用SignTool对setup.exe进行签名?

If it does not work, add a 'BeforePublish' Target by editing your application .csproj file. 如果它不起作用,请通过编辑应用程序.csproj文件添加“BeforePublish”目标。

Check here and see this helps. 点击此处查看此帮助。

Don't forget to mark as answer, if it helps...!!! 不要忘记标记为答案,如果有帮助...... !!!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 clickonce bootstrapper和msbuild的问题 - Issue with clickonce bootstrapper and msbuild 如何确保我的 MSBuild 属性尚未在其他地方定义? - How do I ensure my MSBuild properties are not already defined somewhere else? Windows SDK不应该包含ClickOnce Bootstrapper吗? - Shouldn't the ClickOnce Bootstrapper be included into Windows SDK? 如何获取visual studio用于发布我的应用程序的clickonce构建脚本 - How can I get the clickonce build script used by visual studio to publish my application 如何在MSBUILD(VS2005)中发布ClickOnce安装,该安装将转到正确的目录并且不创建setup.exe? - How do I publish a ClickOnce install in MSBUILD (VS2005) that goes to the proper directory and does NOT create a setup.exe? 如何确保Visual Studio将依赖项的依赖项复制到输出文件夹? - How do I ensure that Visual Studio copies dependencies of dependencies to the output folder? 如何创建一个将安装第三方exe然后安装2个msi应用程序的引导程序 - How can I create a bootstrapper which will install 3rd party exe followed by 2 msi apps 如何从我的 C++ 代码中找到依赖于 Windows 10 的 API 并确保它在 Windows 11 上运行? - How can I find Windows 10 dependent APIs from my C++ code and ensure it runs on Windows 11? 如何发布包含.net安装程序和自动更新功能的clickonce安装程序? - How do you publish a clickonce installer that includes .net installer and Auto-Update functionality? 如何让MSBuild在构建服务器上增加ClickOnce发布修订版本号? - How can I get MSBuild to increment the ClickOnce publish revision version number on a build server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM