开发的程序版本使用.net自带的版本规范1.0.1.2,在项目属性里可以设置
在新建项目的Installed Templates里选择Other Project Types->Setup and Deployment->Visual Studio Installer->Setup Project
此项目可以自动生成项目安装包(.exe / .msi)
关于解决安装好如何自动运行程序的问题
在被安装的程序里添加Installer Class
在里面添加如下代码即可:
protected override void OnAfterInstall(IDictionary savedState)
{
base.OnAfterInstall(savedState);
Assembly asm = Assembly.GetExecutingAssembly();
string path = asm.Location.Remove(asm.Location.LastIndexOf("\\")) + "\\";
System.Diagnostics.Process.Start(path + "\\CZISC.exe");
}