问题一:安装时,提示没有 RunInstallerAttribute.Yes 的公共安装程序。在 F:\WindowService\WMP.FlowActionWindows\WMP.FlowActionWindows.exe 程序集中可能可以找到“Yes”属性。没有安装程序,因此移除 InstallState 文件。
问题原因:该服务缺少安装程序类。
解决方案:在你的项目中添加一个安装程序类,在*.Designer.cs中添加如下代码
/// <summary>
///
/// </summary>
private System.ServiceProcess.ServiceProcessInstaller WorkProcessInstaller;
/// <summary>
///
/// </summary>
private System.ServiceProcess.ServiceInstaller WorkServiceInstaller;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <