自动更新C#Windows Forms应用程序 [英] Automatically update a C# Windows Forms application

查看:169
本文介绍了自动更新C#Windows Forms应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用程序自动检查更新,并在需要时更新应用程序.我安装了InstallShield Limited Edition,但是当我进入更新部分时,发现需要安装FlexNet,这需要我购买.

I want my application to automatically check for updates and update the application if needed. I installed InstallShield Limited edition, but when I went to the update section I found out that I need to install FlexNet which requires me to purchase it.

我发现Windows已停止支持Windows Installer,这就是在Visual Studio 2013中未在设置和部署"部分中列出的原因.

I found out that Windows has stopped supporting Windows Installer which is why in Visual Studio 2013 it's not listed in the setup and deployment section.

我还阅读了有关ClickOnce的信息,但是当我尝试将应用程序部署到FTP服务器时,存在一个小问题.它要求输入用户名和密码,但添加了警告,这些值将采用纯文本格式!所以我该怎么做?是否存在另一种第三方方法来创建安装程序并设置自动更新?

I also read about ClickOnce, but there is a small issue when I tried to deploy my application to the FTP server. It asked for the username and password, but it added a warning that these values will be in plain text! So, what should I do? Is there another third-party way of creating an installer and setting up automatic updates?

推荐答案

我在许多应用程序中都使用了ClickOnce,但从未见过用户名/密码提示.我的过程是:

I've used ClickOnce with dozens of applications and have never seen the username/password prompt. My process is:

  1. 声明该应用程序是从" http://www.yourSite.com/yourApp/"
  2. 在任意位置发布到文件夹"yourApp"
  3. 将整个文件夹拖放到服务器上的WWW空间中
  4. 通过电子邮件向用户发送链接" http://www.yourSite.com/yourApp/yourApp .application "
  1. Declare the application is downloaded from "http://www.yourSite.com/yourApp/"
  2. Publish to folder "yourApp" in whatever location you want
  3. Drag and drop that whole folder into your WWW space on your server
  4. Email your users the link "http://www.yourSite.com/yourApp/yourApp.application"

对于更新,只需重复相同的过程(通过电子邮件发送用户除外),其他所有事情都可以解决.确保选中您的应用程序设置中的框,该框告诉它检查课程更新. 我已经在许多应用程序中使用了ClickOnce,但从未见过用户名/密码提示.我的过程是:

For updates, just repeat this same process (except emailing users), and everything else takes care of itself. Be sure check the box in your application settings that tells it to check for updates of course. I've used ClickOnce with dozens of applications and have never seen the username/password prompt. My process is:

  1. 声明该应用程序是从" http://www.yourSite.com/yourApp/"
  2. 在任意位置发布到文件夹"yourApp"
  3. 将整个文件夹拖放到服务器上的WWW空间中
  4. 通过电子邮件向用户发送链接" http://www.yourSite.com/yourApp/yourApp .application "
  1. Declare the application is downloaded from "http://www.yourSite.com/yourApp/"
  2. Publish to folder "yourApp" in whatever location you want
  3. Drag and drop that whole folder into your WWW space on your server
  4. Email your users the link "http://www.yourSite.com/yourApp/yourApp.application"

对于更新,只需重复相同的过程(通过电子邮件发送用户除外),其他所有事情都可以解决.确保在您的应用程序设置中选中相应的框,告诉它检查课程更新.

For updates, just repeat this same process (except emailing users), and everything else takes care of itself. Be sure check the box in your application settings that tells it to check for updates of course.

这篇关于自动更新C#Windows Forms应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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