2011-12-06 16 views
1

我有一個安裝C#windows服務的WIX。一切都很好。如果我以某種方式能夠在Windows任務管理器中顯示時更改該進程的描述字段,情況會更好。我想在此元素的說明會做,但顯然它不是:WIX XML中的哪個元素設置Windows任務管理器中顯示的進程的描述字段?

<Component Id="MyWindowsServiceExeComponent" Guid="*"> 
<File Id="MyWindowsServiceExe" 
     Name=".My.WindowsService.exe" 
     KeyPath="yes" 
     DiskId="1" 
     Source="$(var.SourceFileDir)My.WindowsService.exe" /> 
<ServiceInstall 
     Id="MyServiceInstaller" 
     Name="MyServiceInstaller" 
     DisplayName="My Service" 
     Type="ownProcess" 
     Start="auto" 
     ErrorControl="normal" 
     Vital="yes" 
     Account="LocalSystem" 
     Description="Provides services for all components." /> 

回答

1

的.exe文件將使用集屬性AssemblyTitle在任務管理器。在serviceInstall元素中指定

的名稱和顯示名稱涉及名稱和說明在serviceIntaller.designer.cs觀察在服務控制管理器(SERVICES.MSC)

0

的顯示名稱和描述是那些在服務列表中顯示(運行services.msc來檢查),並且ServiceName是在Taskmanager - > Service中顯示的那個。

相關問題