Hi,
This is my first post on this list, so I would like to say hello ☺

I have several performance counters that I want to install. All of them should 
go to the same category. I did some research over the web and found the 
following threads:
http://stackoverflow.com/questions/3856680/how-do-i-create-performance-counters-for-a-net-application-with-a-wix-based-ins
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg34128.html
http://masstransit-project.com/documentation/performance-counters
which recommends using PerformanceCategory/PerformanceCounters tags. So I read 
the documentation, found an example in the source 
(wix35-sources\examples\test\perfcounter) and try to implement something 
similar.

I wrote something similar to:
<util:PerformanceCategory Id="Id" Name="Category 
Name" Help="Description" MultiInstance="yes">
    <util:PerformanceCounter Name="% performance counter 
1" Type="rawFraction" />
    <util:PerformanceCounter Name="PerformanceCounter2" Type="rawBase" />
    <util:PerformanceCounter Name="# performance counter 
3" Type="numberOfItems64" />
</util:PerformanceCategory>

After installation, I opened Performance Monitor and then wanted to add new 
counters. The "Category Name" was created successfully in Available counters, 
but unfortunately it has only the counters that name starts with "%" and "#" 
(so the second from above is missing - why?). When I chose the existing one, 
moved it to Added counters and press OK, the changes are not applied (no data 
is gathered). Fields Parent and Instance are blank.

I tried to install also the example from wix source, but the installation 
finishes with "Failed to install performance counters (-2147024894)"; there is 
also nothing interesting in log.
It is also unclear to me how the mapping works; is that the name from 
PerformanceCounter matches the name under which performance counter is 
registered, or there is different rule? I have some doubts now, because of the 
problems above. Documentation is very limited at this point.
I am using WiX 3.5.

Thank you in advance,
Marcin

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to