在安装程序中将App.Config设置为自定义操作 [英] Setup App.Config As Custom Action in Setup Project
问题描述
我有一个使用简单app.config的自定义应用程序,指定SQL Server名称和数据库,我想提示用户在应用程序安装应用程序配置项目,然后更新app.config文件。
I have a custom application with a simple app.config specifying SQL Server name and Database, I want to prompt the user on application install for application configuration items and then update the app.config file.
我承认我完全是设计项目的新手,正在寻找一些指导。
谢谢
Mark Koops
I admit I'm totally new to setup projects and am looking for some guidance. Thank You Mark Koops
推荐答案
我在64位链接到的代码Gulzar有问题机。我发现以下链接是将配置文件的值从app.config中获取的简单解决方案。
I had problems with the code Gulzar linked to on a 64 bit machine. I found the link below to be a simple solution to getting values from the config ui into the app.config.
http://raquila.com/software/configure-app-config-application-settings-during-msi-安装/
这篇关于在安装程序中将App.Config设置为自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!