如何更新C#窗口中的设置 [英] How to update a setup in C# windows

查看:92
本文介绍了如何更新C#窗口中的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我已经通过clickonce部署创建了安装文件。



在我的设置文件夹中我有一些文本文件。我需要在创建安装文件后更新这些文本文件。



当我从这个文本文件更新一些数据时,我无法安装我的安装文件。



你可以帮忙提供一个解决方案。

解决方案

只需重新创建一个安装文件。修改安装文件的想法是错误的。你真的不需要它。请注意,它必须是新产品版本,以避免非常可能的混乱。



同时,当您需要更新时,有不同的情况已完全重新安装的已部署产品,通过更新产品的某些选定组件。特别是,有使用合并模块的技术

http://msdn.microsoft.com/en-us/library/aa369820%28v=vs.85%29.aspx [ ^ ]。



但即便如此,产品的完全重新安装是非常可行的,更简单的选择,特别是对于较小的产品。我会说,对于绝大多数项目来说,这是最简单和最好的方法,几乎​​所有项目,除了一些非常复杂的项目。



-SA

Hi ,

I have created setup file from clickonce deployment.

in my setup folder i have some text file. i will need to update these text file after i create a setup file.

when i update some data from this text file i cant ablt to install my setup file .

could you please help to provide a solution for this .

解决方案

Just recreate a setup file. The idea of modification of setup file is wrong. You never really need it. Note that it has to be a new product version, to avoid really bad possible confusions.

At the same time, there is a different situation, when you need to update the already deployed product without full reinstallation, by updating some select components of the product. In particular, there is the technique of using merged modules:
http://msdn.microsoft.com/en-us/library/aa369820%28v=vs.85%29.aspx[^].

But even then the full reinstallation of the product is quite viable, simpler choice, especially for smaller products. I would say, it's the simplest and best approach for vast majority of projects, nearly for all, except some really complicated ones.

—SA


这篇关于如何更新C#窗口中的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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