在旧版本上安装新版本的部署项目 [英] Installing a new version of a deployment project over old version

查看:154
本文介绍了在旧版本上安装新版本的部署项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个部署项目,不会让我安装在旧版本上。 msi文件说要从添加/删除程序中先卸载该程序。这不是一个很好的用户体验。我该怎么做,以便安装程序首先删除软件,然后安装新版本?

I have a deployment project which will not let me install over an older version. The msi file says to uninstall the program first from Add/Remove programs. This is not a good user experience. How can I do it so that the installer will simply remove the software first and then install the new version?

推荐答案

这是棘手的,您必须执行以下步骤,

This is tricky, you have to do following steps,


  1. 设置删除以前的安装为True

  2. 设置检测新版本为True

  3. 您的C#程序的版本必须随着每次部署而增加

  4. 您应该将安装程序的版本更改为更高版本,并且会询问您更改产品代码,选择是。

  5. 不要更改升级代码,让它相同。

  1. Set Remove Previous Installation as True
  2. Set Detect new version as True
  3. Your C# program's version must increase with every deployment
  4. You should change version of your installer to one higher version and it will ask you to change product code, select YES.
  5. Do not change your upgrade code, let it be same.

如果您不正确执行第3步,安装程序仍然会安装并保留旧文件,如果您更改了内容,则每个文件的文件版本必须是新的。

If you do not do 3rd step correctly, installer will still install and keep the old file, your file version of every file must be new if you have changed your content.

这篇关于在旧版本上安装新版本的部署项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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