读书人

用.net打包的安装程序在安装完成后在后

发布时间: 2012-03-11 18:15:38 作者: rapoo

用.net打包的安装程序在安装完成后在后自动运行某个程序
rt,安装过程执行到最后的时候想运行某个程序该怎么做?

[解决办法]

C# code
        protected override void OnAfterInstall(System.Collections.IDictionary savedState)        {            base.OnAfterInstall(savedState);            ProcessStartInfo p = new ProcessStartInfo(FileName);            Process.Start(p);        } 

读书人网 >C#

热点推荐