Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create performance counters for a .NET application with a WiX-based installer?

Tags:

.net

wix

I'm creating a WiX-based installer for my .NET-based website.

Part of this website involves the performance counters which I would like to create using the installer (counters require elevated permissions to create, something the website should never have).

I have read the documentation provided by WiX on the subject of installing counters, however it looks aimed at native-code applications and seems like it's more effort than it's worth.

How can I create new performance counters using a WiX installer?

like image 578
Paul Turner Avatar asked Oct 14 '22 23:10

Paul Turner


1 Answers

The article you reference refers to WiX v2. It is not obvious however which version of WiX toolset you actually use.

WiX v3 has easy-to-use elements PerformanceCategory and PerformanceCounter. We use it in our .NET web application installer to install performance counters we need.

Hope this helps.

like image 80
Yan Sklyarenko Avatar answered Nov 15 '22 09:11

Yan Sklyarenko