MSI显示卸载旧项目 [英] MSI to show uninstalling of old project

查看:107
本文介绍了MSI显示卸载旧项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2010中为我的应用程序安装了一个Installer项目。在安装新版本之前,我成功地卸载了旧版本的应用程序。将RemovePreviousVersion设置为false 2.将DetectNewInstaller设置为true 3。增加项目版本4.创建新的产品代码



现在当我双击我的应用程序进行安装时,我希望安装向导也显示当前安装的应用程序在显示全新安装的进度条之前正在卸载。我怎么能这样做?

解决方案

_ R_S_问:



SA-

是的,我正在使用与VS 2010捆绑的安装项目。你能推荐一些我可以使用的示例工具包吗?

这些天,我总是推荐开源WiX:

http://en.wikipedia.org/wiki/ WiX

http://wixtoolset.org/



奇怪的是,看起来这个产品是唯一合法的产品,完全符合MSBuild标准项目结构。它还具有非常好的Visual Studio集成。并且与Visual Studio捆绑在一起的所有安装项目类型都不是这样的。难怪Microsoft在Visual Studio的更高版本中弃用它。 (如果我对这个唯一的错了,我希望有人可以纠正我。无论如何,任何人都可以开发MSBuild与一些可用的安装程序开发系统集成,但谁会这样做?在WiX中,它做得很好。例如,安装时可以考虑标准MSBuild 属性 ...



请查看我过去的答案:

installshield和Visual Studio 2012

自定义安装项目



< DD> -SA


I have an Installer project for my application in Visual studio 2010. I was successfully able to make it uninstall the older version of the application before installing the new one by 1. Setting RemovePreviousVersion to false 2. Setting DetectNewInstaller to true 3. Incrementing the project version 4. Creating new product code

Now when I double click my application for installation, I want the the setup wizard to also show that the currently installed application is getting uninstalled before showing the progress bar for fresh installation. How can I do this?

解决方案

_R_S_ asked:


SA-
Yes, I am using setup project bundled with VS 2010. Can you suggest some example tool kits that I can use?

These days, I always recommend open-source WiX:
http://en.wikipedia.org/wiki/WiX,
http://wixtoolset.org/.

Oddly enough, it looks like this product is the only legitimate one, fully conforming to the MSBuild standard project structure. It also has very good Visual Studio integration. And all Setup project type bundled with Visual Studio, is not like that at all. No wonder Microsoft deprecated it in later versions of Visual Studio. (If I'm wrong with this "the only", I hope someone can correct me. Anyway, anyone can develop MSBuild integration with some available installer development system, but who would do it? In WiX, it's done quite well. For example, standard MSBuild properties can be taken into account in the installation…)

Please see my past answers:
installshield and Visual Studio 2012,
Custom setup project.

—SA


这篇关于MSI显示卸载旧项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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