?? installer1.cs
字號:
?using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Diagnostics;
namespace Youzi
{
[RunInstaller(true)]
public partial class Installer1 : Installer
{
public Installer1()
{
InitializeComponent();
}
public override void Install(System.Collections.IDictionary stateSaver)
{
base.Install(stateSaver);
Process p = new Process();
p.StartInfo.FileName = "osql.exe";
p.StartInfo.Arguments = string.Format(" -E -i \"{0}\"", this.Context.Parameters["TARGETDIR"] + "youzi.sql");
p.Start();
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.WaitForExit();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -