簡體   English   中英

WIX XML中的哪個元素設置Windows任務管理器中顯示的進程的描述字段?

[英]What element in WIX XML sets the description field of the process shown in the Windows Task Manager?

我有安裝C#Windows服務的WIX。 萬事皆安。 如果我能夠以某種方式更改在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." />

.exe將使用任務管理器中的程序集屬性AssemblyTitle

[assembly: AssemblyTitle("This is my description")]

在serviceInstall元素中指定的名稱和顯示名稱與在服務控制管理器(services.msc)中查看的名稱和描述相關。

serviceIntaller.designer.cs中的DisplayName和Description是在服務列表中顯示的內容(運行services.msc進行檢查),而ServiceName是Taskmanager-> Service中顯示的名稱。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM