The primary difference I see between these two is that the 
PerformanceCategory/PerformanceCounter elements create the .H and .INI files 
inside of the WixUtilExtension that you must supply when you use the 
PerfCounter element. Thus, the information you had in your .H and .INI files 
must instead be expressed in the two elements in the WiX source file.
 
Once you get this figured out, would you mind (helping) updating the help file 
so that instructions for the non-deprecated elements are provided?
 
> From: surya6...@hotmail.com
> To: wix-users@lists.sourceforge.net
> Date: Wed, 4 Sep 2013 04:09:23 +0530
> Subject: [WiX-users] Replacing util:PerfCounter with util:PerformanceCounter
> 
> Hi,
> 
>  
> 
> We have a PERFMON INI file for installing performance
> counters and this is used with the  util:PerfMon element for installing these
> performance counters by following all the instructions documented here - 
> http://wixtoolset.org/documentation/manual/v3/customactions/perfmon.html
> 
>  
> 
> However, after migrating to WIX 3.6, Compiler outputs this
> warning – 
> 
>  warning CNDL5153 : The PerfCounter element has been deprecated.  Please use 
> the PerformanceCounter element
> instead.
> 
>  
> 
> I have tried using the PerformanceCounter element but now
> the performance counters are not being registered properly. Here is the exact
> wix code – 
> 
>  
> 
> Before - 
> 
> <File Id="File_5AB36041_998E_4D6E_A509_C797E5C7D002"
> Source="<source>" KeyPath="yes"><util:PerfCounter
> xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"; Name="<name>"
> /></File>
> 
>  
> 
> After – 
> 
> <util:PerformanceCategory
> xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"; Id="<Id>"
> Library="[!File_72ECB5A1_4D0D_4709_B173_F7630D9CD304]" >
> 
> <util:PerformanceCounter
> xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";
> Name="<name>" Help=" " />
> 
> </util:PerformanceCategory>
> 
>  
> 
> I have looked for examples on web on how to migrate from
> PerfCounter to PerformanceCategory+PerformanceCounter but did not find 
> anything
> useful. Please suggest on how I can overcome this issue. The fallback option 
> is
> of course to ignore the warning and continue using util:PerfCounter.
> 
>  
> 
> Regards,
> 
> Surya                                           
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to