自定义DevStudio部署项目 [英] Customise DevStudio Deployment project

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

问题描述


我必须每隔几个月构建几个C#部署的应用程序才能创建msi安装程序.我可以在Dev Studio.NET或Dev Studio 2005 Professional中执行此操作.

我们经常会发现我用作各种项目的配置文件的某些xml文件存在问题,这些项目中需要更改xml中的一项设置.
目前,我必须重新构建整个项目以仅针对一个xml文件更改重新创建msi.
我想做的是让安装程序在安装过程中检查是否有可用的xml配置文件的更高版本(放置在安装程序CD上的某处),如果有,请覆盖打包在带有更新版本的msi.

这可能吗?

谢谢.

Hi
I have several C# deployed applications that I have to build every few months to create the msi installers. I do this in either Dev Studio.NET or Dev Studio 2005 professional.

Quite often we find problems with some of the xml files I use as config files for various projects where one setting in the xml needs changing.
At present I have to rebuild the whole project to recreate the msi just for one xml file change.
What I''d like to be able to do is have the installer check during install if there is a later version of its xml config file available (placed on the installer CD somwhere) and if so overwrite the one that is packaged up in the msi with the newer version.

Is this possible and how?

Thanks.

推荐答案

对于这种事情,您将必须编写DLL来为所需的额外功能提供自定义操作.

看看:

[ ^ ]

还有

[
For this kind of thing you''ll have to write a DLL to provide a custom action for the extra functionality you want.

Take a look at:

This[^]

And

This[^]

There are loads of others to have a look at too....


这篇关于自定义DevStudio部署项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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