clickonce麻烦 [英] Trouble with clickonce

查看:97
本文介绍了clickonce麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的clickonce应用程序有两个问题。这是一个winForm,C#应用程序。



我在网络上有安装文件。当有人点击安装时,它会挂起,直到我将其移动到桌面并再次单击安装。此时会弹出第二个安装屏幕,程序会立即安装。



生成更新会产生类似的情况。将弹出屏幕,询问我是否要安装更新。当我单击是时,它安装到100%,但然后挂起,直到我再次单击打开程序。此时打开包含更新。





我希望有人遇到过类似情况并且可以让我知道他们做了什么来解决它。



这几乎就像是缺少关闭安装,更新,然后打开程序的一些步骤。



我尝试了什么:



因为这在技术上有效,而且没有代码坚持我正在做的事情,我不包括任何你有什么尝试的项目,因为我没有尝试过任何不同的东西。我已经按照clickonce实现过程,使用适当的UNC到网络文件夹。有什么我想念的吗?

解决方案

我写了一篇关于这个主题的文章。希望它有所帮助: Winform的静音ClickOnce安装程序& WP#中的WPF& VB [ ^ ]

I have two issues going on with my clickonce application. This is a winForm, C# application.

I have the setup file on the network. When someone clicks to install, it just hangs until I move it to their desktop and click to install again. At that point a second installation screen will pop up, and the program instantly installs.

Generating updates creates a similar situation. The screen will pop up asking if I want to install the update. When I click yes, it installs to 100% but then just hangs there until I click to open the program again. At that point it opens with the update included.


I'm hoping someone has run across a similar situation and can let me know what they did to resolve it.

It's almost as though it's missing some step to close the installation, or update, and then open the program.

What I have tried:

As this is technically working, and there is no code persay to what I'm doing, I'm not including any "What have you tried" items, because I have not tried anything differently. I have followed the clickonce implementation procedure, using the proper UNC to the network folder. Is there something I am missing?

解决方案

I have written an article on this topic. Hope it helps: Silent ClickOnce Installer for Winform & WPF in C# & VB[^]


这篇关于clickonce麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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