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

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

问题描述

ClickOnce安装程序出现问题,完全不知道我在做什么错...

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

我正在尝试发布VSTO使用VS2012的Outlook 2013插件。但是,当我单击由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创建用于签署清单的证书时,我开始比较这些证书之间的差异。出来:哈希算法必须为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天全站免登陆