WIX XML中的哪个元素设置了Windows任务管理器中显示的进程的描述字段
本文关键字:显示 任务管理器 进程 描述 Windows 字段 设置 XML 元素 WIX | 更新日期: 2023-09-27 18:17:02
我有一个安装了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)中查看的名称和描述相关
serviceinstaller .designer.cs中的DisplayName和Description显示在服务列表(运行服务)中。ServiceName是在Taskmanager -> Service.