Hi John, Thank you for the answer and suggestion. Unfortunately, we cannot allow application to register performance counters itself.
I dig into it a bit more today and I am pretty confident that it is a bug: I logged it as id: 3433540. In short words, when the performance counter wants to register itself as a counter with 'process' lifetime, it cannot do that; it seems that the category might be created in some kind of old fashioned way and does not allow registering that kind of PCs. Repro attached to the bug. Thanks, Marcin -----Original Message----- From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] Sent: 3. november 2011 20:25 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Installing performance counters problem Marcin, We had similar issues, so decided to just create the performance counters when the application is started the first time, have you thought about doing that? (we allow our customers to configure which counters they actually want to use because we have over 15,000 metrics available within our application). John -----Original Message----- From: Marcin Roman [mailto:t-mro...@microsoft.com] Sent: Thursday, November 03, 2011 10:21 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Installing performance counters problem Hi, It turned out that all of the missing entries were of type rawBase and it was expected behavior not to show them. But the problem with gathering data still exist: it should be able to work with multiple instances and setting on/off MultiInstance attribute does not allow to catch anything. The application that registers counters works properly and the counters are visible in performance monitor, but when I click them, the instances field is empty. Regards, Marcin -----Original Message----- From: Marcin Roman [mailto:t-mro...@microsoft.com] Sent: 1. november 2011 16:37 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Installing performance counters problem 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® Conference 2012 Save $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 ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $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 ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $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 ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $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