回答

0

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

下面是一个例子

[RunInstaller(true)] 
public partial class MyCustomInstaller : Installer 
{ 
     private MyCustomForm = new MyCustomForm(); 
     // this is your custom form that allows users to modify the configuration parameters. 
} 

,然后你可以caputure事件是这样的:

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

您可以在this看看,介绍如何使用CustomActions改变app.config文件来自msi安装程序。

+0

404此链接,未来请给出一个简短的总结,以避免这个问题。你知道链接是否在其他地方活跃吗? – 2016-01-12 17:24:48

相关问题