clickonce麻烦

编程入门 行业动态 更新时间:2024-10-24 12:29:12
本文介绍了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麻烦

本文发布于:2023-11-12 07:31:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580889.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:麻烦   clickonce

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!