安装时错误 Exception:
System.InvalidOperationException: Installation failed due to the absence of a ServiceProcessInstaller. The ServiceProcessInstaller must either be the containing installer, or it must be present in the Installers collection on the same installer as the ServiceInstaller.
The ServiceInstaller automatically has its parent set to the Installer class but the ServiceProcessInstaller does not. You must manually set its parent property to the Installer class.
注意Note: 如果还是错误删除 installer class再加过。If still error, delete installer class and add it again
Exception:
System.ArgumentException: Must specify value for source.
Solution
The “ServiceName” property on the ServiceInstaller instance must be set.
这两个的parent要一样哦