简体   繁体   English

每次创建设置时如何更改设置

[英]how to change settings every time when I create setup

I have developed a wpf application for a client and I dont want to give the source code.我为客户开发了一个 wpf 应用程序,我不想提供源代码。 Since the client wants to change the logo and few links in the application for his different set of users, how can I give a functionality for him to create a setup with different settings each time?由于客户想要为他的不同用户组更改应用程序中的徽标和少量链接,我怎样才能为他提供每次创建具有不同设置的设置的功能?

I thought of giving the debug folder so that he can change the exe.config and create the setup with Inno setup.我想给调试文件夹,以便他可以更改 exe.config 并使用 Inno setup 创建设置。 is this the right way or can you please guide me another solution?这是正确的方法还是请您指导我另一种解决方案?

Thanks, Venkz谢谢,文克兹

Why don't you create an "app.config" (application configuration) file?为什么不创建一个“app.config”(应用程序配置)文件? It's just a simple XML file with defined syntaxes or you can define your own configuration settings.它只是一个带有定义语法的简单 XML 文件,或者您可以定义自己的配置设置。

For more info about this, see this on MSDN: http://msdn.microsoft.com/en-us/library/kza1yk3a.aspx有关这方面的更多信息,请参阅 MSDN: http://msdn.microsoft.com/en-us/library/kza1yk3a.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 每当我从该类创建新对象时,如何将属性更改为其他值? - How can I change a property to a different value, every time I create a new object from that class? 使用统一引擎时,我收到错误 ArgumentException: Input Button w is not setup。 要更改输入设置,请使用:编辑 -> 设置 -> 输入 - When using unity engine I get the error ArgumentException: Input Button w is not setup. To change the input settings use: Edit -> Settings -> Input 如何通过代码设置应用程序设置? - How do I setup the Application Settings by code? 每次更改其属性时如何更新 UI 上的控件 - How to update controls on UI every time I change it's property 每当我想在WPF中更改样式的属性时,是否都需要创建一个新样式? - Do I need to create a new style every time I want to change an attribute of a style in WPF? 如何设置每个组件的resharper设置 - How do I setup per-assembly resharper settings 如何为每 15 秒的游戏时间生成比萨饼的时间间隔 - How do I create a time interval for every 15 sec of the game time spawn pizza 如何更改 Settings.settings 值的值 - How do I change the value of a Settings.settings value 如何更改 GeckoFx 代理设置? - How do I change GeckoFx proxy settings? 创建按钮,每次单击都会更改字符串值 - Create button which change string value every time clicked
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM