当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 需求: 现在我想要安装完成一个简单的自定义操作: 1 在安装过程中提供两个文本框,用于我输入数据库服务器名和要打开的数据库名。
 

 

    摘要: asynchronous socket utility classes – part iauthor: william kennedydate added: 28th mar 2003type: tutorialrating: this is a printable version of "asynchronous socket utility classes – ......
 ·dotnetthreading,partii    »显示摘要«
    摘要: dotnet threading, part iiauthor: randy morindate added: 17th mar 2003type: tutorialrating: this is a printable version of "dotnet threading, part ii". for the complete online version, ......


自定义安装

需求:

1 在安装过程中提供两个文本框,用于我输入数据库服务器名与要打开的数据库名. 【程序编程相关:在.NETFramework中轻松处理X

现在我想要安装完成一个简单的自定义操作: 【推荐阅读:ASP.NET中实现MD5_HMAC(C

【扩展信息:VisualBasic.Net连各种数据

2 将我的输入的数据写入一个文本文件,保存在 c:\log.txt.

实现:

1 新建一个类库项目,在该项目下添加一个类:

using system;

using system.componentmodel;

using system.collections;

using system.configuration.install;

using system.io;

[runinstaller(true)]

public class myinstaller : installer

{

    public override void install(idictionary savedstate)

    {

        base.install(savedstate);

        try

        {

            streamwriter writer = new streamwriter("c:\\log.txt");

            writer.writeline("whern i kasdjf" + system.datetime.now.tostring());

            writer.writeline(this.context.parameters["server"] + this.context.parameters["database"]);


...   下一页
 ·smartertools,dumberdevelopers?    »显示摘要«
    摘要: smarter tools, dumber developers? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE