我可以使用Wixsharp安装Windows服务吗
我一直在使用WIX#(wixsharp)创建MSI,我看不到如何安装Windows服务。我已经浏览了整个CHM文件,但我没有看到任何特定的Windows服务。我可以使用Wixsharp安装Windows服务吗
TIA,
布伦特...
回答:
随着1.0.4版本(发布2015年1月18日),维克斯#支持安装Windows服务。
https://wixsharp.codeplex.com/releases/view/610843
File service; var project = 
    new Project("My Product", 
     new Dir(@"%ProgramFiles%\My Company\My Product", 
      service = new File(@"..\SimpleService\MyApp.exe"))); 
service.ServiceInstaller = new ServiceInstaller 
{ 
    Name = "WixSharp.TestSvc", 
    StartOn = SvcEvent.Install, 
    StopOn = SvcEvent.InstallUninstall_Wait, 
    RemoveOn = SvcEvent.Uninstall_Wait, 
}; 
以上是 我可以使用Wixsharp安装Windows服务吗 的全部内容, 来源链接: utcz.com/qa/267139.html








