windows服务
创建一个Windows服务,仅用InstallUtil程序去安装这个服务是不够的。你必须还要把一个服务安装程序添加到你的Windows服务当中,这样便于InstallUtil或是任何别的安装程序知道应用你服务的是怎样的配置设置。 
1.   将这个服务程序切换到设计视图 
2.   右击设计视图选择“添加安装程序” 
3.   切换到刚被添加的ProjectInstaller的设计视图 
4.   设置serviceInstaller1组件的属性:   
        1)   ServiceName   =   My   Sample   Service 
        2)   StartType   =   Automatic 
5.   设置serviceProcessInstaller1组件的属性   
        1)   Account   =   LocalSystem 
6.   生成解决方案
 
                     
                    
                 
                    
                 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号