在安装项目中将 App.Config 设置为自定义操作 [英] Setup App.Config As Custom Action in Setup Project

查看:28
本文介绍了在安装项目中将 App.Config 设置为自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义应用程序,其中包含一个指定 SQL Server 名称和数据库的简单 app.config,我想在应用程序安装时提示用户输入应用程序配置项,然后更新 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.

我承认我对设置项目完全陌生,正在寻找一些指导.谢谢你马克·库普斯

I admit I'm totally new to setup projects and am looking for some guidance. Thank You Mark Koops

推荐答案

我在 64 位机器上链接到 Gulzar 的代码时遇到问题.我发现下面的链接是将值从 config ui 获取到 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-install/

这篇关于在安装项目中将 App.Config 设置为自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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