错误:No public installers with the RunInstallerAttribute.Yes attribute could be found in the D:\yourservicename.exe assembly.
Remove InstallState file because there are no installers.
解决方案/Solution
1. Right click project >> Add >> New Item >> Installer Class(Installer1.cs)
1. 专案右键>> 加入 >> New Item >> Installer Class(Installer1.cs)