安装程序部署项目-升级问题 [英] Setup Deployment Project - Upgrade Issue

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

问题描述

我有一个简单的C#.net应用程序,我为此创建了一个安装项目.该应用程序是单个exe,并使用app.config fil.

我的问题是,每当对代码进行任何更新时,如何去升级应用程序?

在安装项目中,我看到可以将安装程序设置为自动删除旧版本,但是我真的不想这样做,因为它可能会将我的自定义设置覆盖在我的app.config中.

我真的很希望能够创建一个安装项目,该项目将仅更新应用程序的二进制内容并保留我的app.config设置.我也不想先卸载.

我想我正在寻找与安装shield的升级"选项类似的东西.

我一直在玩几个设置,而自己却不知所措...我该如何做到这一点?

我执行了以下操作,但仍未成功:

VS建议,只要增加版本(从安装项目中),就应该更改产品ID/GUID.当我更改版本和guiid时,确实在添加/删除程序中添加了另一个条目.

我尝试简单地在exe上更改程序集版本,然后在不修改安装项目中的版本和guid的情况下重建安装程序包,当我进行安装时,我得到安装程序检测到该产品的先前版本....您必须先卸载..."消息.

提前非常感谢.
亲切的问候,

I have a simple C#.net application that I have created a setup project for.The application is a single exe and uses an app.config fil.

My question is, how do I go about upgrading the application whenever I make any updates to my code?

Within the setup project, I see I can set the installer to automatically remove the old version, but I don''t really want to do that since it may overlay my custom settings in my app.config.

I really want to be able to create a setup project that will simply update the binary content of my application and keep my app.config settings. I also don''t want to have do uninstall first.

I guess I''m looking for something similar to install shield''s ''upgrade'' option.

I''ve been playing with several settings and have more than confused myself...How can I accomplish this?

I performed the following, but still no success:

VS recommended I change the Product id/GUID whenever I increased the version (from my setup project). When I changed the version and guiid, it did add another entry to the add/remove programs.

I tried simply changing the assembly version on my exe, then rebuilding the setup package without modifying the version and guid within the setup project and when I went to do an install I got the "setup detected a previous version of this product....you must first uninstall..." message.

Many thanks in advance.
Kind regards,

推荐答案

^ ]解决您的问题?

它具有无需手动卸载就可以升级的功能.
Will ClickOnce Deployment[^] solve your problem?

This has the capability to upgrade without uninstalling manually.


大家好,

要解决此问题,请执行以下操作:

1)对于解决方案中属于安装项目的每个项目,请增加程序集版本.
2)增加安装项目的版本
3)这将提示您更改一些指导.说是
4)确保RemovePreviousVersions为true,并记住Visual Studio 2008的更新机制要求您为要更新的文件增加文件版本.
5)建立安装项目.

这解决了我的问题.
Hi all,

To solve this issue do the following:

1) For each project in your solution that is part of the setup project, increment the assembly version.
2) Increment the setup project''s version
3) This will prompt you to change some guids. Say yes
4) Make sure RemovePreviousVersions is true, and keep in mind that Visual Studio 2008''s update mechanism requires you to increase file versions for files that you want to update.
5) Build setup project.

This solved my problem.


关注此链接
http://balanagaraj.wordpress.com /2007/05/29/create-exe-or-setup-file-in-net-windows-application/ [
follow this link
http://balanagaraj.wordpress.com/2007/05/29/create-exe-or-setup-file-in-net-windows-application/[^]


这篇关于安装程序部署项目-升级问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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