.net 如何从MSI安装程序(在Visual Studio上设计)更改app.config?

.net 如何从MSI安装程序(在Visual Studio上设计)更改app.config?,.net,visual-studio,visual-studio-2008,installation,windows-installer,.net,Visual Studio,Visual Studio 2008,Installation,Windows Installer,我有一个.NET应用程序,它使用Settings.Settings和app.conf作为配置存储库,而不是Windows注册表。在安装过程中向用户提问并将响应写入Windows注册表似乎很容易,但我还没有找到将响应写入app.config文件的方法。有人知道怎么做吗?我做过这样的项目,要求用户在安装过程中提供所有参数。您可以创建包含所有标签、文本框和按钮的自定义表单。在安装程序类中,将该表单用作安装程序类的属性 这里有一个例子 [RunInstaller(true)] public partia

我有一个.NET应用程序,它使用Settings.Settings和app.conf作为配置存储库,而不是Windows注册表。在安装过程中向用户提问并将响应写入Windows注册表似乎很容易,但我还没有找到将响应写入app.config文件的方法。有人知道怎么做吗?

我做过这样的项目,要求用户在安装过程中提供所有参数。您可以创建包含所有标签、文本框和按钮的自定义表单。在安装程序类中,将该表单用作安装程序类的属性

这里有一个例子

[RunInstaller(true)]
public partial class MyCustomInstaller : Installer
{
      private MyCustomForm = new MyCustomForm();
      // this is your custom form that allows users to modify the configuration parameters.
}
然后你可以举办这样的活动:

  private void InitializeComponent()
  {
      this.AfterInstall += new System.Configuration.Install.InstallEventHandler(DoConfigurationManagement_AfterInstall);
  }

您可以看一看,它解释了如何使用CustomActions从msi安装程序更改app.config文件。

404对于此链接,今后请简要总结以避免此问题。你知道该链接是否处于活动状态吗?