如果存在先前版本,如何制作MSI覆盖程序? [英] How to make the msi overwrite program if a previous version exist?

查看:124
本文介绍了如果存在先前版本,如何制作MSI覆盖程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2010,正在使用Windows应用程序,并且尝试为其创建自动更新程序时遇到了严重的问题。

I am using Visual Studio 2010, I am working on a windows application and while trying to make an automatic updater for it faced a serious problem.

找到一个新版本并尝试安装它,但由于以下两个原因而无法完成:

When the program find a new version and trying to install it, it couldn't because of two reasons:

1 -该应用程序存在于我的程序中文件。这样该窗口就会出现

1- the application is exist in my program files. so that window appears

2 -应用程序已经打开 执行更新过程的表单

2- the application is already opened "the form that performed the update process".

问题与版本号没有任何关系。

The problem doesn't have any relation with the version number.

这与程序的存在以及是否能够安装新版本有关,尽管先前的版本

It's about the program existence and the ability to install a new version although the previous version is opened.

推荐答案

启用自动主要升级机制,您需要增加 ProductVersion 并更改产品代码。这是通过项目属性窗格完成的。

To enable the automated major upgrade mechanism you need to increase the ProductVersion and change the ProductCode. This is done through the project Properties pane.

您可以在此处阅读有关升级的更多信息: http://msdn.microsoft.com/zh-cn/library/windows/desktop/aa370579(v = vs。 85).aspx

You can read more about upgrades here: http://msdn.microsoft.com/en-us/library/windows/desktop/aa370579(v=vs.85).aspx

这篇关于如果存在先前版本,如何制作MSI覆盖程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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