ClickOnce 安装程序立即停止执行 [英] ClickOnce Setup instantly stops executing

查看:28
本文介绍了ClickOnce 安装程序立即停止执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 ClickOnce 设置有问题,完全不知道我做错了什么......

I've got a problem with a ClickOnce Setup and have absolutely no idea what I'm doing wrong...

我正在尝试使用 VS2012 发布适用于 Outlook 2013 的 VSTO 插件.但是,当我单击由 ClickOnce Publish 创建的 Setup.exe 时,安装程​​序会显示小安装窗口约半秒钟,然后立即再次消失.这根本不会显示任何错误消息或生成任何事件日志条目.

I'm trying to publish a VSTO AddIn for Outlook 2013 using VS2012. However when I click on the Setup.exe created by the ClickOnce Publish the Setup shows the small installation window for about half a second and then instantly disappears again. This without showing any error message or generating any event log entries at all.

  • ClickOnce 清单使用测试证书(自签名证书).
  • 程序集未签名.(但是,如果我选择签名,则不会有任何改变)
  • 我使用 CD 或 DVD-ROM 作为安装路径发布到文件系统(发布到 IIS 会导致同样的问题)

昨天这奏效了.今天不会了.从那以后没有改变任何东西......

Yesterday this had worked. Today it won't. Hadn't changed anything since then...

有没有人知道我可能做错了什么?

Has anyone an idea what I might be doing wrong?

推荐答案

终于找到了答案...经过多次尝试重现该问题后,我注意到以下内容:

Finally found the answer... After many tries to reproduce the problem i noticed the following:

如果我创建一个新项目,除了手动创建一个测试证书之外,什么都不做,发布的设置将不会运行,但如果我根本不更改任何内容,它就可以工作...

If I create a new project don't change anything but create manually a test certificate the published setup won't run, but if I don't change anything at all it works...

当 ClickOnce 创建用于签署清单的证书时,我开始比较这些证书之间的差异.出来了:hash算法必须是sha1

As ClickOnce creates a Certificate for signing the manifest I started comparing the differences between those certificates. Comes out: the hash algorithm has to be sha1

此证书无效.并且安装程序将中止而不提示错误原因:

This certificate doesn't work. And the installer will abort without giving an hint about what's wrong:

此证书有效.

人们可能认为安装程序至少会提示可能出错的地方,而不仅仅是中止.

One might think that the Setup would give at least a hint about what might be wrong instead of just aborting.

我希望如果其他人偶然发现这个问题,这可能会有所帮助:)

I hope if someone else stumbles upon this issue this might help :)

这篇关于ClickOnce 安装程序立即停止执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆