如何在安装项目中动态添加配置文件 [英] How to add config file dynamically in Setup Project

查看:329
本文介绍了如何在安装项目中动态添加配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我在C#中有一个应用程序.想要使用安装项目生成此的msi bulid.

但是在此应用程序中,根据客户端有4个confing文件,我想在安装项目中添加一些选定的客户端confing文件.只有那些被我提及的客户.




I have a application in C# . want to genrate msi bulid of this using setup project.

but in this application there are 4 confing file according to client i wants to add some selected client confing file in setup project. only those client which is mention by me.


how this is achive please any one help me.

推荐答案

这取决于您用于设置的应用程序.如果您使用的是Visual Studio中的Microsoft设置应用程序,则可以创建一个自定义操作,该操作可用于触发某些文件的安装.

http://msdn.microsoft.com/en-us/library/d9k65z2d (v = vs.80).aspx [
It depends what application you are using for the setup. If you are using the Microsoft setup app from Visual Studio then you can create a custom action that can be used to trigger installation of certain files.

http://msdn.microsoft.com/en-us/library/d9k65z2d(v=vs.80).aspx[^]


这篇关于如何在安装项目中动态添加配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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