如何在没有 ClickOnce 的情况下自动更新应用程序? [英] How to automatically update an application without ClickOnce?

查看:24
本文介绍了如何在没有 ClickOnce 的情况下自动更新应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我正在处理的项目,我不允许使用 ClickOnce.我的老板希望程序看起来真实"(带有安装程序等).

For the project I am working on, I am not allowed to use ClickOnce. My boss wants the program to look "real" (with an installer, etc).

我已经安装了 Visual Studio 2012 Professional,并且一直在玩<一个 href="http://en.wikipedia.org/wiki/InstallShield" rel="noreferrer">InstallShield 安装程序,它绝对是不错的安装程序,但我不知道如何启用该应用程序到自动更新"(即,当它启动时,检查以确保它使用的是最新版本).

I have installed Visual Studio 2012 Professional, and have been playing around with the InstallShield installer, and it definitely makes nice installers, but I can't figure out how to enable the application to "auto-update" (that is, when it starts up, checks to make sure that it is using the latest version).

我被要求对代码做一个微小的改变 - 将加法切换为减法,我真的不希望人们每次都必须卸载旧版本,然后每次都必须重新安装新版本做一个这样的小改动.

I have been asked to make a tiny change to the code - switching an addition to a subtraction, and I don't really want people to have to uninstall the old version, and then have to reinstall the new version every time I make a small change like this.

如何让应用程序检查更新并安装它们?或者这不可能(或不容易)?

How can I make the application check for updates, and install them? Or is this not possible (or not easy)?

推荐答案

关于这个已经有很多问题了,所以我会向你推荐这些.

There are a lot of questions already about this, so I will refer you to those.

您要确保避免卸载的一件事是,您在每个版本上使用相同的升级代码,但更改产品代码.这些值位于 Installshield 项目属性中.

One thing you want to make sure to prevent the need for uninstallation, is that you use the same upgrade code on every release, but change the product code. These values are located in the Installshield project properties.

一些参考:

这篇关于如何在没有 ClickOnce 的情况下自动更新应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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