Perf计数器不使用ServiceInstall安装服务
我有一个NT服务,有一些性能计数器。当我使用installutil部署服务时,perf计数器和服务安装正常。当我使用我的使用ServiceInstall的msi进行部署时,服务会显示,但不会安装perf计数器。
我总是假设ServiceInstall运行了installutil。是否存在一些阻碍我安装perf计数器的重要区别?
Wix细分市场
<ServiceInstall Id='ServiceInstall' ErrorControl='ignore' Type='ownProcess' DisplayName='Service' Description='service' Name='Service' Start='auto' Account='[SERVICEACCOUNT]' Password='[SERVICEACCOUNTPASSWORD]' />
<ServiceControl Id='Service' Remove='uninstall' Name='Service' Start='install' Stop='both' Wait='yes' />
Perf计数器安装
[RunInstallerAttribute(true)]
[RegistryPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
[EnvironmentPermissionAttribute(SecurityAction.InheritanceDemand, Unrestricted = true)]
public sealed class CountersInstaller : Installer
{
public CountersInstaller()
{
Installers.AddRange(Counters.Instance.PerformanceCounterInstallers());
}
}
没有找到相关结果
已邀请:
1 个回复
济畦刨