日期:2014-05-18  浏览次数:20761 次

关于部署的问题,急。
建了一个Windows服务,然后在Setup里添加了主输出Installers(windows 服务)
内容文件是一个网站。

但是我在Installers里的写了一个方法,然后在安装的时候没有弹出窗口阿,方法如下:

public override void Install(IDictionary stateSaver)
  {
  MessageBox.Show("测试", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
  }



------解决方案--------------------
探讨
引用:

引用:
引用:

windows服务默认是没有交互界面的,不过你可以设置
http://www.cnblogs.com/ryan-world/archive/2010/06/10/1755228.html


那Windows Installer是安装服务啊(就是我要用的服务吧),但是我勾选了“允许服务与桌面交互”也没弹出……